From: Jaemin Ryu Date: Tue, 31 Oct 2017 05:54:16 +0000 (+0900) Subject: Include device-policy-manager.h for the shared types X-Git-Tag: submit/tizen_4.0/20171129.062733^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e448a8c1542fa28f5079a6156f24e3732e66b0a;p=platform%2Fcore%2Fsecurity%2Fdpm-zone.git Include device-policy-manager.h for the shared types Change-Id: I3b3ab191069276ba249ba3d6761893dbc7723115 Signed-off-by: Jaemin Ryu --- diff --git a/api/zone.cpp b/api/zone.cpp index 3caf419..8b45bae 100755 --- a/api/zone.cpp +++ b/api/zone.cpp @@ -21,6 +21,12 @@ #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); diff --git a/api/zone.h b/api/zone.h index 16bf233..c69588f 100644 --- a/api/zone.h +++ b/api/zone.h @@ -17,7 +17,7 @@ #ifndef __CAPI_DPM_ZONE_POLICY_H__ #define __CAPI_DPM_ZONE_POLICY_H__ -typedef void * device_policy_manager_h; +#include /** * @file zone.h