summaryrefslogtreecommitdiff
path: root/src/media-thumbnail.c
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-03-23 00:37:57 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2016-03-23 00:43:25 (GMT)
commit7020eb25112070454fe450cab3b0b7215d8f90cc (patch)
tree4e16aa2b7521801db235736622ebb98704668b6c /src/media-thumbnail.c
parent5ab78ec86380f306e30b6ac419a0e7bcb21dadbe (diff)
downloadlibmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.zip
libmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.tar.gz
libmedia-thumbnail-7020eb25112070454fe450cab3b0b7215d8f90cc.tar.bz2
Change-Id: I90d6103c199c4a7e209f16e1e0e6f648f488e866 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/media-thumbnail.c')
-rwxr-xr-xsrc/media-thumbnail.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index f378f14..1cbc719 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -30,7 +30,6 @@
int thumbnail_request_from_db_with_size(const char *origin_path, char *thumb_path, int max_length, int *origin_width, int *origin_height, uid_t uid)
{
int err = MS_MEDIA_ERR_NONE;
- //int need_update_db = 0;
media_thumb_info thumb_info;
if (origin_path == NULL || thumb_path == NULL) {
@@ -94,7 +93,7 @@ int thumbnail_request_extract_all_thumbs(uid_t uid)
return MS_MEDIA_ERR_NONE;
}
-int thumbnail_request_from_db_async(const char *origin_path, ThumbFunc func, void *user_data, uid_t uid)
+int thumbnail_request_from_db_async(unsigned int request_id, const char *origin_path, ThumbFunc func, void *user_data, uid_t uid)
{
int err = MS_MEDIA_ERR_NONE;
@@ -127,7 +126,7 @@ int thumbnail_request_from_db_async(const char *origin_path, ThumbFunc func, voi
userData->user_data = user_data;
/* Request for thumb file to the daemon "Thumbnail generator" */
- err = _media_thumb_request_async(THUMB_REQUEST_DB_INSERT, origin_path, userData, uid);
+ err = _media_thumb_request_async(THUMB_REQUEST_DB_INSERT, request_id, origin_path, userData, uid);
if (err != MS_MEDIA_ERR_NONE) {
thumb_err("_media_thumb_request failed : %d", err);
SAFE_FREE(userData);
@@ -170,7 +169,7 @@ int thumbnail_request_extract_raw_data_async(int request_id, const char *origin_
return MS_MEDIA_ERR_NONE;
}
-int thumbnail_request_cancel_media(const char *origin_path)
+int thumbnail_request_cancel_media(unsigned int request_id, const char *origin_path)
{
int err = MS_MEDIA_ERR_NONE;
@@ -179,7 +178,7 @@ int thumbnail_request_cancel_media(const char *origin_path)
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
- err = _media_thumb_request_async(THUMB_REQUEST_CANCEL_MEDIA, origin_path, NULL, 0);
+ err = _media_thumb_request_async(THUMB_REQUEST_CANCEL_MEDIA, request_id, origin_path, NULL, 0);
if (err != MS_MEDIA_ERR_NONE) {
thumb_err("_media_thumb_request failed : %d", err);
return err;