Include device-policy-manager.h for the shared types 21/158321/2 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171130.063537 accepted/tizen/5.0/unified/20181102.020431 accepted/tizen/unified/20171130.063353 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:38:00 +0000 (14:38 +0900)
committersangwan kwon <sangwan.kwon@samsung.com>
Tue, 31 Oct 2017 06:27:57 +0000 (06:27 +0000)
Change-Id: Iaf229e88770a13d87db4cdf479eadce163e1c689
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
api/media.cpp
api/media.h

index 80f5bad..4c91cda 100644 (file)
 
 #include "media.h"
 
+#define RET_ON_FAILURE(cond, ret) \
+{                                 \
+       if (!(cond))                  \
+               return (ret);             \
+}
+
 EXPORT_API int dpm_media_set_camera_state(void* handle, int allow)
 {
        RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER);
index 01bfb7c..30fc52b 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CAPI_MEDIA_H__
 #define __CAPI_MEDIA_H__
 
-typedef void * device_policy_manager_h;
+#include <dpm/device-policy-manager.h>
 
 /**
  * @file media.h