From: Jaemin Ryu Date: Tue, 31 Oct 2017 05:33:29 +0000 (+0900) Subject: Use device-policy-manager.h for the shared types X-Git-Tag: accepted/tizen/4.0/unified/20171130.063544^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=162cbe5d5f4173a72291f147b15bb94660885a1d;p=platform%2Fcore%2Fsecurity%2Fdpm-auth.git Use device-policy-manager.h for the shared types Change-Id: If0de10d11a381d2dbdf79985147570f99a1de5af Signed-off-by: Jaemin Ryu --- diff --git a/api/auth.h b/api/auth.h index c060858..acd77e9 100644 --- a/api/auth.h +++ b/api/auth.h @@ -17,7 +17,7 @@ #ifndef __CAPI_PASSWORD_POLICY_H__ #define __CAPI_PASSWORD_POLICY_H__ -typedef void * device_policy_manager_h; +#include /** * @file password.h diff --git a/api/password.cpp b/api/password.cpp index 93963dd..b890ab3 100644 --- a/api/password.cpp +++ b/api/password.cpp @@ -26,6 +26,12 @@ #include "auth.h" +#define RET_ON_FAILURE(cond, ret) \ +{ \ + if (!(cond)) \ + return (ret); \ +} + template class Array final { public: