Example #1
0
bool DvProvider::SetPropertyBool(PropertyBool& aProperty, TBool aValue)
{
    if (aProperty.SetValue(aValue)) {
        TryPublishUpdate();
        return true;
    }
    return false;
}
Example #2
0
uint32_t STDCALL ServicePropertySetValueBool(ServiceProperty aProperty, uint32_t aValue)
{
    PropertyBool* prop = reinterpret_cast<PropertyBool*>(aProperty);
    ASSERT(prop != NULL);
    TBool val = (aValue != 0);
    if (prop->SetValue(val)) {
        return 1;
    }
    return 0;
}