From d6433645bbb257cd0632d238e3ed3356aef0a9ff Mon Sep 17 00:00:00 2001 From: Jaemin Ryu Date: Tue, 31 Oct 2017 14:38:16 +0900 Subject: [PATCH] Include device-policy-manager.h for the shared types Change-Id: Ie3ae7f12083a958f191942f8cbfceeea1e60c4cb Signed-off-by: Jaemin Ryu --- api/security.cpp | 6 ++++++ api/security.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/api/security.cpp b/api/security.cpp index 24bdcce..04e0a40 100644 --- a/api/security.cpp +++ b/api/security.cpp @@ -21,6 +21,12 @@ #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); diff --git a/api/security.h b/api/security.h index 6431c7e..2e19a6e 100644 --- a/api/security.h +++ b/api/security.h @@ -19,7 +19,7 @@ #include -typedef void * device_policy_manager_h; +#include /** * @file security.h -- 2.7.4