Include device-policy-manager.h for the shared types 22/158322/2 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171130.063534 accepted/tizen/5.0/unified/20181102.020803 accepted/tizen/unified/20171130.063330 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:38:16 +0000 (14:38 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:27:45 +0000 (06:27 +0000)
Change-Id: Ie3ae7f12083a958f191942f8cbfceeea1e60c4cb
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/security.cpp
api/security.h

index 24bdcce..04e0a40 100644 (file)
 
 #include "security.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_security_lockout_screen(device_policy_manager_h handle)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index 6431c7e..2e19a6e 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdbool.h>
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file security.h