summaryrefslogtreecommitdiff
path: root/include/media-thumbnail.h
diff options
context:
space:
mode:
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-08-26 16:28:49 +0200
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-09-30 14:09:14 +0200
commit561e2cae46730cdbadf485dfa7ab449e60524bae (patch)
tree5d2127e248aac6750950cbd2352976729baa4bc7 /include/media-thumbnail.h
parent1b8cf739c37f1103b7fa613b788f0d5e32f5bad9 (diff)
downloadlibmedia-thumbnail-submit/tizen_ivi/20141007.222222.tar.gz
libmedia-thumbnail-submit/tizen_ivi/20141007.222222.tar.bz2
libmedia-thumbnail-submit/tizen_ivi/20141007.222222.zip
Use User UID to write or read into database Use Unix socket Fix-Tizen: TC-1482 Change-Id: I557a28de1650c9af1a30ef7d795d64464eaa2e8f Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Diffstat (limited to 'include/media-thumbnail.h')
-rwxr-xr-xinclude/media-thumbnail.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/media-thumbnail.h b/include/media-thumbnail.h
index 5b38585..1101258 100755
--- a/include/media-thumbnail.h
+++ b/include/media-thumbnail.h
@@ -23,6 +23,8 @@
#ifndef _MEDIA_THUMBNAIL_H_
#define _MEDIA_THUMBNAIL_H_
+#include <sys/types.h>
+
#include "media-thumb-types.h"
#include "media-thumb-error.h"
@@ -92,7 +94,7 @@ void gen_thumbs()
* @endcode
*/
-int thumbnail_request_from_db(const char *origin_path, char *thumb_path, int max_length);
+int thumbnail_request_from_db(const char *origin_path, char *thumb_path, int max_length, uid_t uid);
/**
* thumbnail_request_from_db_async:
@@ -137,7 +139,7 @@ void gen_thumbs()
* @endcode
*/
-int thumbnail_request_from_db_async(const char *origin_path, ThumbFunc func, void *user_data);
+int thumbnail_request_from_db_async(const char *origin_path, ThumbFunc func, void *user_data, uid_t uid);
/**
* thumbnail_request_save_to_file:
@@ -176,7 +178,7 @@ void save_thumbs()
*/
int thumbnail_request_save_to_file(const char *origin_path,
media_thumb_type thumb_type,
- const char *thumb_path);
+ const char *thumb_path, uid_t uid);
/**
@@ -210,12 +212,12 @@ void extract_all_thumbs()
* @endcode
*/
-int thumbnail_request_extract_all_thumbs(void);
+int thumbnail_request_extract_all_thumbs(uid_t uid);
-int thumbnail_request_from_db_with_size(const char *origin_path, char *thumb_path, int max_length, int *origin_width, int *origin_height);
+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);
/* Cancel APIs that a request to extract thumbnail */
-int thumbnail_request_cancel_media(const char *origin_path);
+int thumbnail_request_cancel_media(const char *origin_path, uid_t uid);
/* Cancel APIs that all requests to extract thumbnail of a process */
int thumbnail_request_cancel_all();