projects
/
platform
/
core
/
security
/
dpm-security.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Include device-policy-manager.h for the shared types
[platform/core/security/dpm-security.git]
/
api
/
security.cpp
diff --git
a/api/security.cpp
b/api/security.cpp
index
24bdcce
..
04e0a40
100644
(file)
--- a/
api/security.cpp
+++ b/
api/security.cpp
@@
-21,6
+21,12
@@
#include "security.h"
+#define RET_ON_FAILURE(cond, ret) \
+{ \
+ if (!(cond)) \
+ return (ret); \
+}
+
EXPORT_API int dpm_security_lockout_screen(device_policy_manager_h handle)
{
RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);