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 c06085809f8ade2282f45545676cdbe3654efdd3..acd77e98f5c665bfe701adbdae78e4ee7989be03 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 93963ddf739b607c7b189e39024a8b73beaf26dc..b890ab324063cf49d76843c7ce3809364ac3838d 100644 (file)
 
 #include "auth.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 template <typename T>
 class Array final {
 public: