void DviDeviceMap::Add(DviDevice& aDevice) { DviDeviceMap& self = DviStack::DeviceMap(); self.iLock.Wait(); Brn udn(aDevice.Udn()); self.iMap.insert(std::pair<Brn,DviDevice*>(udn, &aDevice)); self.iLock.Signal(); }
void DviDeviceMap::Remove(DviDevice& aDevice) { DviDeviceMap& self = DviStack::DeviceMap(); self.iLock.Wait(); Brn udn(aDevice.Udn()); Map::iterator it = self.iMap.find(udn); if (it != self.iMap.end()) { self.iMap.erase(it); } self.iLock.Signal(); }
TBool DviSessionLpec::SubscriptionData::Matches(DviDevice& aDevice, DviService& aService) const { return (iDevice->Udn() == aDevice.Udn() && iService->ServiceType().FullName() == aService.ServiceType().FullName()); }