From: Jaemin Ryu Date: Tue, 31 Oct 2017 05:36:53 +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=12e2e8a1762b327748e40cfe809b6ac3845e738a;p=platform%2Fcore%2Fsecurity%2Fdpm-bluetooth.git Include device-policy-manager.h for the shared types Change-Id: I2500612859a4751b81483bbcfefd5fa626bb6a61 Signed-off-by: Jaemin Ryu --- diff --git a/api/bluetooth.cpp b/api/bluetooth.cpp index 7879555..adbe622 100644 --- a/api/bluetooth.cpp +++ b/api/bluetooth.cpp @@ -20,6 +20,12 @@ #include "bluetooth.h" +#define RET_ON_FAILURE(cond, ret) \ +{ \ + if (!(cond)) \ + return (ret); \ +} + EXPORT_API int dpm_bluetooth_set_mode_change_state(device_policy_manager_h handle, bool allow) { RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER); diff --git a/api/bluetooth.h b/api/bluetooth.h index b4f47f4..1607174 100644 --- a/api/bluetooth.h +++ b/api/bluetooth.h @@ -18,8 +18,7 @@ #define __CAPI_DPM_BLUETOOTH_POLICY_H__ #include - -typedef void * device_policy_manager_h; +#include /** * @file bluetooth.h