CpDeviceCpp::CpDeviceCpp(CpiDevice& aDevice) : iDevice(aDevice) , iUdn((const char*)aDevice.Udn().Ptr(), aDevice.Udn().Bytes()) , iRefCount(1) { iDevice.AddRef(); }
void CpDeviceList::Removed(CpiDevice& aDevice) { Brn udn(aDevice.Udn()); Map::iterator it = iMap.find(udn); if (it != iMap.end()) { CpDevice* device = it->second; iRemoved(*device); device->RemoveRef(); iMap.erase(it); } }