Include device-policy-manager.h for the shared types 19/158319/2 accepted/tizen/4.0/unified/20171130.063607 accepted/tizen/unified/20171130.063338 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:37:24 +0000 (14:37 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:28:48 +0000 (06:28 +0000)
Change-Id: I9f96341395462cee559e8fd9426d80785dbb180f
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/email.cpp
api/email.h

index c7519dfbea5c0eaa10cbb49257285c9eb8c933f9..a3a928b925f2b63515da7b32eeca441d5cef043c 100644 (file)
 
 #include "email.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_email_set_popimap_state(device_policy_manager_h handle, bool allow)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index 4285e00cf61a201dff2a2fab4ce69ebda06d2a95..9b826bc8f56d50e9de7c3ef6082a4c6409748d7a 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdbool.h>
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file email.h