Example #1
0
CpDeviceCpp::CpDeviceCpp(CpiDevice& aDevice)
    : iDevice(aDevice)
    , iUdn((const char*)aDevice.Udn().Ptr(), aDevice.Udn().Bytes())
    , iRefCount(1)
{
    iDevice.AddRef();
}
Example #2
0
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);
    }
}