uint32_t STDCALL ServicePropertySetValueUint(ServiceProperty aProperty, uint32_t aValue) { PropertyUint* prop = reinterpret_cast<PropertyUint*>(aProperty); ASSERT(prop != NULL); if (prop->SetValue(aValue)) { return 1; } return 0; }
int32_t STDCALL ServicePropertyValueUint(ServiceProperty aProperty, uint32_t* aValue) { PropertyUint* prop = reinterpret_cast<PropertyUint*>(aProperty); ASSERT(prop != NULL); int32_t err = 0; try { *aValue = prop->Value(); } catch (PropertyError&) { err = -1; } return err; }
void CpProxyAvOpenhomeOrgInfo1C::PropertyBitDepth(TUint& aBitDepth) const { PropertyReadLock(); ASSERT(IsSubscribed()); aBitDepth = iBitDepth->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgInfo1C::PropertyDuration(TUint& aDuration) const { PropertyReadLock(); ASSERT(IsSubscribed()); aDuration = iDuration->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgInfo1C::PropertyMetatextCount(TUint& aMetatextCount) const { PropertyReadLock(); ASSERT(IsSubscribed()); aMetatextCount = iMetatextCount->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgTime1C::PropertySeconds(TUint& aSeconds) const { PropertyReadLock(); ASSERT(IsSubscribed()); aSeconds = iSeconds->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgTime1C::PropertyTrackCount(TUint& aTrackCount) const { PropertyReadLock(); ASSERT(IsSubscribed()); aTrackCount = iTrackCount->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgInfo1C::PropertySampleRate(TUint& aSampleRate) const { PropertyReadLock(); ASSERT(IsSubscribed()); aSampleRate = iSampleRate->Value(); PropertyReadUnlock(); }
bool DvProvider::SetPropertyUint(PropertyUint& aProperty, TUint aValue) { if (aProperty.SetValue(aValue)) { TryPublishUpdate(); return true; } return false; }
void DvProviderAvOpenhomeOrgInfo1C::GetPropertyDuration(TUint& aValue) { aValue = iPropertyDuration->Value(); }
void DvProviderAvOpenhomeOrgInfo1C::GetPropertyBitDepth(TUint& aValue) { aValue = iPropertyBitDepth->Value(); }
void DvProviderAvOpenhomeOrgMediaServer1C::GetPropertyUpdateCount(TUint& aValue) { ASSERT(iPropertyUpdateCount != NULL); aValue = iPropertyUpdateCount->Value(); }
void DvProviderAvOpenhomeOrgInfo1C::GetPropertyMetatextCount(TUint& aValue) { aValue = iPropertyMetatextCount->Value(); }
void DvProviderAvOpenhomeOrgCredentials1C::GetPropertySequenceNumber(TUint& aValue) { ASSERT(iPropertySequenceNumber != NULL); aValue = iPropertySequenceNumber->Value(); }
void DvProviderAvOpenhomeOrgMediaServer1C::GetPropertyBrowsePort(TUint& aValue) { ASSERT(iPropertyBrowsePort != NULL); aValue = iPropertyBrowsePort->Value(); }
void DvProviderAvOpenhomeOrgTime1C::GetPropertySeconds(TUint& aValue) { aValue = iPropertySeconds->Value(); }
void CpProxyAvOpenhomeOrgTime1C::PropertyDuration(TUint& aDuration) const { AutoMutex a(GetPropertyReadLock()); CheckSubscribed(); aDuration = iDuration->Value(); }
void DvProviderAvOpenhomeOrgRadio1C::GetPropertyId(TUint& aValue) { ASSERT(iPropertyId != NULL); aValue = iPropertyId->Value(); }
void DvProviderAvOpenhomeOrgInfo1C::GetPropertySampleRate(TUint& aValue) { aValue = iPropertySampleRate->Value(); }
void CpProxyAvOpenhomeOrgTime1C::PropertySeconds(TUint& aSeconds) const { AutoMutex a(GetPropertyReadLock()); CheckSubscribed(); aSeconds = iSeconds->Value(); }
void DvProviderUpnpOrgContentDirectory1C::GetPropertySystemUpdateID(TUint& aValue) { ASSERT(iPropertySystemUpdateID != NULL); aValue = iPropertySystemUpdateID->Value(); }
void DvProviderAvOpenhomeOrgTime1C::GetPropertyTrackCount(TUint& aValue) { aValue = iPropertyTrackCount->Value(); }
void DvProviderAvOpenhomeOrgRadio1C::GetPropertyChannelsMax(TUint& aValue) { ASSERT(iPropertyChannelsMax != NULL); aValue = iPropertyChannelsMax->Value(); }
void CpProxyAvOpenhomeOrgTime1C::PropertyTrackCount(TUint& aTrackCount) const { AutoMutex a(GetPropertyReadLock()); CheckSubscribed(); aTrackCount = iTrackCount->Value(); }