{
/* device removed */
if (peripheral->Type() != PERIPHERAL_UNKNOWN)
+ {
CLog::Log(LOGNOTICE, "%s - device removed from %s/%s: %s (%s:%s)", __FUNCTION__, PeripheralTypeTranslator::TypeToString(peripheral->Type()), peripheral->Location().c_str(), peripheral->DeviceName().c_str(), peripheral->VendorIdAsString(), peripheral->ProductIdAsString());
+ peripheral->OnDeviceRemoved();
+ }
m_peripherals.erase(m_peripherals.begin() + iDevicePtr);
lock.Leave();
virtual void OnSettingChanged(const CStdString &strChangedSetting) {};
/*!
+ * @brief Called when this device is removed, before calling the destructor.
+ */
+ virtual void OnDeviceRemoved(void) {}
+
+ /*!
* @brief Get all subdevices if this device is multifunctional.
* @param subDevices The subdevices.
*/