Include device-policy-manager.h for the shared types
[platform/core/security/dpm-security.git] / api / security.cpp
index 24bdcce..04e0a40 100644 (file)
 
 #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);