Exemplo n.º 1
0
bool DvProvider::SetPropertyInt(PropertyInt& aProperty, TInt aValue)
{
    if (aProperty.SetValue(aValue)) {
        TryPublishUpdate();
        return true;
    }
    return false;
}
Exemplo n.º 2
0
uint32_t STDCALL ServicePropertySetValueInt(ServiceProperty aProperty, int32_t aValue)
{
    PropertyInt* prop = reinterpret_cast<PropertyInt*>(aProperty);
    ASSERT(prop != NULL);
    if (prop->SetValue(aValue)) {
        return 1;
    }
    return 0;
}