projects
/
platform
/
core
/
security
/
dpm-usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1cdf2d
)
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
author
Jaemin Ryu
<jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:39:08 +0000
(14:39 +0900)
committer
Jaemin 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
patch
|
blob
|
history
api/usb.h
patch
|
blob
|
history
diff --git
a/api/usb.cpp
b/api/usb.cpp
index
1ce48f6
..
968c0b9
100644
(file)
--- a/
api/usb.cpp
+++ b/
api/usb.cpp
@@
-21,6
+21,12
@@
#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);
diff --git
a/api/usb.h
b/api/usb.h
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