From 74144e16cba3298336ddeba1df6e51c9221f6fbf Mon Sep 17 00:00:00 2001 From: Jaemin Ryu Date: Tue, 31 Oct 2017 14:36:21 +0900 Subject: [PATCH] Include device-policy-manager.h for the shared types Change-Id: I55f310f624b7687529e386270eca1db22c1b8a09 Signed-off-by: Jaemin Ryu --- api/application.cpp | 6 ++++++ api/application.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/api/application.cpp b/api/application.cpp index fc785a1..ae1e77f 100644 --- a/api/application.cpp +++ b/api/application.cpp @@ -21,6 +21,12 @@ #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); diff --git a/api/application.h b/api/application.h index bc71b94..be0f1f7 100644 --- a/api/application.h +++ b/api/application.h @@ -17,7 +17,7 @@ #ifndef __CAPI_DPM_APPLICATION_POLICY_H__ #define __CAPI_DPM_APPLICATION_POLICY_H__ -typedef void * device_policy_manager_h; +#include /** * @file application.h -- 2.7.4