summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-12 02:56:56 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2017-07-12 06:02:55 (GMT)
commit32fe300117df43130bd365049939122869933d20 (patch)
tree50697ce5f0e9ec63b6b8139005144746de3c5969 /src/include
parentc5869473bdf194dd44dc56d269399487106ff759 (diff)
downloadlibmedia-thumbnail-32fe300117df43130bd365049939122869933d20.zip
libmedia-thumbnail-32fe300117df43130bd365049939122869933d20.tar.gz
libmedia-thumbnail-32fe300117df43130bd365049939122869933d20.tar.bz2
Remove unused coderefs/changes/68/138368/3
Remove unused enums, values, APIs. Change-Id: I9f9e66581dc1ef19ceb10f83abe7dcb88eb563e7 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/ipc/media-thumb-ipc.h17
-rwxr-xr-xsrc/include/media-thumb-internal.h6
-rwxr-xr-xsrc/include/util/media-thumb-util.h2
3 files changed, 2 insertions, 23 deletions
diff --git a/src/include/ipc/media-thumb-ipc.h b/src/include/ipc/media-thumb-ipc.h
index cc021b6..651cd7c 100755
--- a/src/include/ipc/media-thumb-ipc.h
+++ b/src/include/ipc/media-thumb-ipc.h
@@ -38,25 +38,12 @@
#define _MEDIA_THUMB_IPC_H_
#define MAX_PATH_SIZE 4096
-#define MAX_TRIES 3
int _media_thumb_recv_msg(int sock, int header_size, thumbMsg *msg);
-
-int _media_thumb_recv_udp_msg(int sock, int header_size, thumbMsg *msg, struct sockaddr_un *from_addr, unsigned int *from_size);
-
int _media_thumb_set_buffer(thumbMsg *req_msg, unsigned char **buf, int *buf_size);
-int _media_thumb_request(int msg_type,
- const char *origin_path,
- char *thumb_path,
- int max_length,
- uid_t uid);
-
-int _media_thumb_request_async(int msg_type,
- unsigned int request_id,
- const char *origin_path,
- thumbUserData *userData,
- uid_t uid);
+int _media_thumb_request(int msg_type, const char *origin_path, char *thumb_path, int max_length, uid_t uid);
+int _media_thumb_request_async(int msg_type, unsigned int request_id, const char *origin_path, thumbUserData *userData, uid_t uid);
int _media_thumb_request_raw_data_async(int msg_type,
int request_id,
diff --git a/src/include/media-thumb-internal.h b/src/include/media-thumb-internal.h
index 358fdc2..43d9b41 100755
--- a/src/include/media-thumb-internal.h
+++ b/src/include/media-thumb-internal.h
@@ -27,15 +27,9 @@
#ifndef _MEDIA_THUMB_INTERNAL_H_
#define _MEDIA_THUMB_INTERNAL_H_
-#define THUMB_WIDTH_MAX
/* The maximum of resolution to be able to get thumbnail is 3000 x 3000, except for only jpeg */
#define THUMB_MAX_ALLOWED_MEM_FOR_THUMB 9000000
-#define THUMB_LARGE_WIDTH 320
-#define THUMB_LARGE_HEIGHT 240
-#define THUMB_SMALL_WIDTH 160
-#define THUMB_SMALL_HEIGHT 120
-
typedef struct {
int size;
int width;
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index 4b9c74b..c71d6a3 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -34,11 +34,9 @@
#define THUMB_VIDEO_TYPE 1 /* Video */
int _media_thumb_get_file_ext(const char *file_path, char *file_ext, int max_len);
-
int _media_thumb_get_file_type(const char *file_full_path);
char* _media_thumb_generate_hash_name(const char *file);
-
int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path, size_t max_thumb_path, uid_t uid);
int _media_thumb_remove_file(const char *path);