Add uid and tzplatform header. 57/41257/1
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 12 Jun 2015 04:36:37 +0000 (13:36 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 12 Jun 2015 04:36:37 +0000 (13:36 +0900)
Change-Id: I26393c5a512f80cd4731692482885ab2fa137f82
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/thumbnail_util_private.h
packaging/capi-media-thumbnail-util.spec
src/thumbnail_util.c

index 2295401..6dd5c37 100755 (executable)
@@ -28,6 +28,7 @@
 #include <glib.h>
 #include <thumbnail_util_type.h>
 #include <dlog.h>
+#include <tzplatform_config.h>
 
 
 #ifdef __cplusplus
index a8e7510..fcec8fc 100755 (executable)
@@ -46,7 +46,7 @@ make %{?jobs:-j%jobs}
 %files
 %manifest capi-media-thumbnail-util.manifest
 %{_libdir}/libcapi-media-thumbnail-util.so
-%{_datadir}/license/%{name}
+%license LICENSE.APLv2.0
 
 %files devel
 %{_includedir}/media/*.h
index 181d372..f7e3e2c 100755 (executable)
@@ -96,7 +96,7 @@ int thumbnail_util_extract(thumbnail_h thumb, thumbnail_extracted_cb callback, v
                        _thumb->dst_height = 240;
                }
 
-               ret = thumbnail_request_extract_raw_data_async(_thumb->request_id, _thumb->file_path, _thumb->dst_width, _thumb->dst_height, (ThumbRawFunc)__thumbnail_util_extract_completed_cb, (void *)_thumb_cb);
+               ret = thumbnail_request_extract_raw_data_async(_thumb->request_id, _thumb->file_path, _thumb->dst_width, _thumb->dst_height, (ThumbRawFunc)__thumbnail_util_extract_completed_cb, (void *)_thumb_cb, tzplatform_getuid(TZ_USER_NAME));
        }
        else
        {
@@ -154,7 +154,7 @@ int thumbnail_util_cancel(thumbnail_h thumb, const char *request_id)
        if(_thumb != NULL && STRING_VALID(request_id))
        {
                unsigned int request_id_integer = atoi(request_id);
-               ret = thumbnail_request_cancel_raw_data(request_id_integer);
+               ret = thumbnail_request_cancel_raw_data(request_id_integer, tzplatform_getuid(TZ_USER_NAME));
        }
        else
        {
@@ -172,7 +172,7 @@ int thumbnail_util_cancel_all(thumbnail_h thumb)
 
        if(_thumb != NULL)
        {
-               ret = thumbnail_request_cancel_all(true);
+               ret = thumbnail_request_cancel_all(true, tzplatform_getuid(TZ_USER_NAME));
        }
        else
        {