Include device-policy-manager.h for the shared types 17/158317/2 accepted/tizen/4.0/unified/20171130.063548 accepted/tizen/unified/20171130.063334 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:36:53 +0000 (14:36 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:28:38 +0000 (06:28 +0000)
Change-Id: I2500612859a4751b81483bbcfefd5fa626bb6a61
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/bluetooth.cpp
api/bluetooth.h

index 7879555..adbe622 100644 (file)
 
 #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);
index b4f47f4..1607174 100644 (file)
@@ -18,8 +18,7 @@
 #define __CAPI_DPM_BLUETOOTH_POLICY_H__
 
 #include <stdbool.h>
-
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file bluetooth.h