Change-Id: I2500612859a4751b81483bbcfefd5fa626bb6a61
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
#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);
#define __CAPI_DPM_BLUETOOTH_POLICY_H__
#include <stdbool.h>
-
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
/**
* @file bluetooth.h