Include device-policy-manager.h for the shared types 25/158325/1 accepted/tizen/4.0/unified/20171130.063610 accepted/tizen/unified/20171130.063412 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:39:08 +0000 (14:39 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:39:08 +0000 (14:39 +0900)
Change-Id: I206eb0f64ce085f30ccd28728a41647983e6f4bb
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/usb.cpp
api/usb.h

index 1ce48f6..968c0b9 100644 (file)
 
 #include "usb.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_usb_set_debugging_state(device_policy_manager_h handle, bool allow)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index 1304392..eb36c99 100644 (file)
--- a/api/usb.h
+++ b/api/usb.h
@@ -19,7 +19,7 @@
 
 #include <stdbool.h>
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file usb.h