Include device-policy-manager.h for the shared types 20/158320/2 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171130.063555 accepted/tizen/5.0/unified/20181102.022144 accepted/tizen/unified/20171130.063345 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733 submit/tizen_5.0/20181101.000004 tizen_4.0.IoT.p2_release
authorJaemin Ryu <jm77.ryu@samsung.com>
Tue, 31 Oct 2017 05:37:42 +0000 (14:37 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:28:07 +0000 (06:28 +0000)
Change-Id: If17de2ce357ddc486933c5bd770ffad270132192
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/location.cpp
api/location.h

index 3f8ffbb..75343d4 100644 (file)
 
 #include "location.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_location_set_state(device_policy_manager_h handle, bool allow)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index a34fe0e..98f0a71 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdbool.h>
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file location.h