void DevicePolicyClient::maintenanceModeDispatcher(keynode_t *node, void *data)
{
int *mode = reinterpret_cast<int *>(data);
- ::vconf_get_bool(VCONFKEY_DPM_MODE_STATE, mode);
+ if (::vconf_get_bool(VCONFKEY_DPM_MODE_STATE, mode) != 0)
+ ERROR("failed to get vconf key");
}
DevicePolicyClient::DevicePolicyClient() noexcept :
{
mainloop.reset(new ScopedGMainLoop);
::vconf_notify_key_changed(VCONFKEY_DPM_MODE_STATE, maintenanceModeDispatcher, reinterpret_cast<void*>(&this->maintenanceMode));
- ::vconf_get_bool(VCONFKEY_DPM_MODE_STATE, &maintenanceMode);
+ if (::vconf_get_bool(VCONFKEY_DPM_MODE_STATE, &maintenanceMode) != 0)
+ ERROR("failed to get vconf key");
}
DevicePolicyClient::~DevicePolicyClient() noexcept