Change-Id: I3b3ab191069276ba249ba3d6761893dbc7723115
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
#include "zone.h"
+#define RET_ON_FAILURE(cond, ret) \
+{ \
+ if (!(cond)) \
+ return (ret); \
+}
+
EXPORT_API int dpm_zone_create(device_policy_manager_h handle, const char* name, const char* pkgname)
{
RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
#ifndef __CAPI_DPM_ZONE_POLICY_H__
#define __CAPI_DPM_ZONE_POLICY_H__
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
/**
* @file zone.h