Apply tizen coding rule 68/147368/2 accepted/tizen/unified/20170906.060727 submit/tizen/20170905.045152
authorHaejeong Kim <backto.kim@samsung.com>
Mon, 4 Sep 2017 06:00:34 +0000 (15:00 +0900)
committerhj kim <backto.kim@samsung.com>
Mon, 4 Sep 2017 08:08:21 +0000 (08:08 +0000)
Change-Id: I9325741c7aaa538ff8234599cb30128cb1ea7111

md5/md5.h [changed mode: 0644->0755]
md5/media-thumb-hash.c [changed mode: 0644->0755]
src/include/util/media-thumb-debug.h
src/ipc/media-thumb-ipc.c
src/media-thumb-internal.c
src/media-thumbnail.c
src/util/media-thumb-debug.c

old mode 100644 (file)
new mode 100755 (executable)
index 7cc0a35..72c9994
--- a/md5/md5.h
+++ b/md5/md5.h
@@ -30,9 +30,9 @@ typedef struct MD5Context {
        unsigned char in[64];
 } MD5_CTX;
 
-extern void   media_thumb_MD5Init(MD5_CTX *context);
-extern void   media_thumb_MD5Update(MD5_CTX *context,unsigned char const *buf,unsigned len);
-extern void   media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
-extern void   MD5Transform(uint32_t buf[4], uint32_t const in[16]);
+extern void media_thumb_MD5Init(MD5_CTX *context);
+extern void media_thumb_MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
+extern void media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
+extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
 
 #endif
old mode 100644 (file)
new mode 100755 (executable)
index abd4fda..b0a94f7
@@ -104,4 +104,4 @@ char *_media_thumb_generate_hash_name(const char *file)
        md5out[2 * n] = '\0';
 
        return md5out;
-}
\ No newline at end of file
+}
index 9cfbe2d..83333fa 100755 (executable)
@@ -83,7 +83,7 @@
                        } while (0)
 #define thumb_retv_if(expr, val) do { \
                                if (expr) { \
-                                       LOGE(FONT_COLOR_RED""FONT_COLOR_RESET);         \
+                                       LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
                                        return (val); \
                                } \
                        } while (0)
index 46f7ae8..3e8ccec 100755 (executable)
@@ -754,7 +754,7 @@ int _media_thumb_request_async(int msg_type, unsigned int request_id, const char
        thumb_req->path = g_strdup(origin_path);
        thumb_req->userData = userData;
        thumb_req->isCanceled = false;
-       thumb_req->isRequested= false;
+       thumb_req->isRequested = false;
        thumb_req->request_id = request_id;
        thumb_req->uid = uid;
 
@@ -792,7 +792,7 @@ int _media_thumb_request_raw_data_async(int msg_type, int request_id, const char
        thumb_req->height = height;
        thumb_req->userData = userData;
        thumb_req->isCanceled = false;
-       thumb_req->isRequested= false;
+       thumb_req->isRequested = false;
        thumb_req->uid = uid;
 
        len = g_queue_get_length(g_manage_raw_queue);
index ef0f51d..c6c4a57 100755 (executable)
@@ -1201,7 +1201,7 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
        _media_thumb_get_file_ext(file_full_path, file_ext, sizeof(file_ext));
 
        ret = ms_user_get_storage_type(uid, file_full_path, &storage_type);
-       if((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
+       if ((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
                thumb_err_slog("origin path(%s) is invalid. err : [%d] storage_type [%d]", file_full_path, ret, storage_type);
                return MS_MEDIA_ERR_INVALID_PARAMETER;
        }
index 8a4645f..2fb3065 100755 (executable)
@@ -49,7 +49,7 @@ int thumbnail_request_from_db(const char *origin_path, char *thumb_path, int max
        ms_user_storage_type_e store_type = -1;
        err = ms_user_get_storage_type(uid, origin_path, &store_type);
 
-       if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+       if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
                thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
                return MS_MEDIA_ERR_INVALID_PARAMETER;
        }
@@ -83,7 +83,7 @@ int thumbnail_request_from_db_async(unsigned int request_id, const char *origin_
        ms_user_storage_type_e store_type = -1;
        err = ms_user_get_storage_type(uid, origin_path, &store_type);
 
-       if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+       if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
                thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
                return MS_MEDIA_ERR_INVALID_PARAMETER;
        }
index f293afd..33d33af 100755 (executable)
@@ -105,4 +105,4 @@ thumb_print_debug_time_ex(long start, long end, const char *func_name, char *tim
        thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime);
 #endif
 }
-#endif
\ No newline at end of file
+#endif