Include device-policy-manager.h for the shared types 30/158330/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/5.0/unified/20181102.021550 accepted/tizen/unified/20171130.063349 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733 submit/tizen_5.0/20181101.000004 tizen_4.0.IoT.p2_release
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:54:16 +0000 (14:54 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:54:16 +0000 (14:54 +0900)
Change-Id: I3b3ab191069276ba249ba3d6761893dbc7723115
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/zone.cpp
api/zone.h

index 3caf419..8b45bae 100755 (executable)
 
 #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);
index 16bf233..c69588f 100644 (file)
@@ -17,7 +17,7 @@
 #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