Include device-policy-manager.h for the shared types 26/158326/2 accepted/tizen/unified/20171130.063405 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:39:25 +0000 (14:39 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:37:19 +0000 (06:37 +0000)
Change-Id: I46e706ba6a013d194c201bda65b234de7fcc906a
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/wifi.cpp
api/wifi.h

index d72deb4..90b843c 100644 (file)
 
 #include "wifi.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_wifi_set_state(device_policy_manager_h handle, bool allow)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index 77443b2..b62aaf3 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdbool.h>
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file wifi.h