Use device-policy-manager.h for the shared types 15/158315/2 accepted/tizen/4.0/unified/20171130.063544 accepted/tizen/unified/20171130.063408 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733 tizen_4.0.IoT.p2_release
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:33:29 +0000 (14:33 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:23:29 +0000 (06:23 +0000)
Change-Id: If0de10d11a381d2dbdf79985147570f99a1de5af
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/auth.h
api/password.cpp

index c060858..acd77e9 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CAPI_PASSWORD_POLICY_H__
 #define __CAPI_PASSWORD_POLICY_H__
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file password.h
index 93963dd..b890ab3 100644 (file)
 
 #include "auth.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 template <typename T>
 class Array final {
 public: