Include device-policy-manager.h for the shared types 16/158316/2 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171130.063530 accepted/tizen/5.0/unified/20181102.021520 accepted/tizen/unified/20171130.063309 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:36:21 +0000 (14:36 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:28:25 +0000 (06:28 +0000)
Change-Id: I55f310f624b7687529e386270eca1db22c1b8a09
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/application.cpp
api/application.h

index fc785a1..ae1e77f 100644 (file)
 
 #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);
index bc71b94..be0f1f7 100644 (file)
@@ -17,7 +17,7 @@
 #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