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 3caf419c0143ad3becad2340c87affb5d7babf29..8b45baee9b0dc2a18b4b1eb5b995ea44bd8a0714 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 16bf23345874f568139187123a1bcf0d166c45f4..c69588f8acf09d6ddfaf84dfd3db90553f649121 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