Change-Id: I55f310f624b7687529e386270eca1db22c1b8a09
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
#include "application.h"
+#define RET_ON_FAILURE(cond, ret) \
+{ \
+ if (!(cond)) \
+ return (ret); \
+}
+
EXPORT_API int dpm_application_set_mode_restriction(device_policy_manager_h handle, int mode)
{
RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
#ifndef __CAPI_DPM_APPLICATION_POLICY_H__
#define __CAPI_DPM_APPLICATION_POLICY_H__
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
/**
* @file application.h