Just update internal API names 64/136364/1
authorHaejeong Kim <backto.kim@samsung.com>
Thu, 29 Jun 2017 08:02:50 +0000 (17:02 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Thu, 29 Jun 2017 08:02:50 +0000 (17:02 +0900)
Change-Id: I6ec13bba0b97e50126161bcea4ffcd54a5b34a79

src/common/media-svc-util.c

index 0e8af3767b76c2d7c9573db4732f4212db2e626b..e82cf46952900b1720f3f33f026dddde3c352ea8 100755 (executable)
@@ -813,7 +813,7 @@ static int __media_svc_safe_atoi(char *buffer, int *si)
        return MS_MEDIA_ERR_NONE;
 }
 
-static int _media_svc_save_image(unsigned char *image, unsigned int size, char *image_path, uid_t uid)
+static int __media_svc_save_image(unsigned char *image, unsigned int size, char *image_path, uid_t uid)
 {
        int ret = MS_MEDIA_ERR_NONE;
 
@@ -866,7 +866,7 @@ static int _media_svc_save_image(unsigned char *image, unsigned int size, char *
        return MS_MEDIA_ERR_NONE;
 }
 
-static char *_media_svc_get_title_from_filepath(const char *path)
+static char *__media_svc_get_title_from_filepath(const char *path)
 {
        char *filename = NULL;
        char *title = NULL;
@@ -1088,7 +1088,7 @@ int _media_svc_set_default_value(media_svc_content_info_s *content_info, bool re
 
        /* Set filename to title for all media */
        char *title = NULL;
-       title = _media_svc_get_title_from_filepath(content_info->path);
+       title = __media_svc_get_title_from_filepath(content_info->path);
        if (title) {
                ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
                if (ret != MS_MEDIA_ERR_NONE)
@@ -1649,7 +1649,7 @@ int _media_svc_extract_music_metadata_for_update(sqlite3 *handle, media_svc_cont
 
                                if (idx == size) {
                                        media_svc_debug("Can't extract title. All string is space");
-                                       title = _media_svc_get_title_from_filepath(content_info->path);
+                                       title = __media_svc_get_title_from_filepath(content_info->path);
                                        if (title) {
                                                ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
                                                if (ret != MS_MEDIA_ERR_NONE)
@@ -1662,7 +1662,7 @@ int _media_svc_extract_music_metadata_for_update(sqlite3 *handle, media_svc_cont
                        }
                } else {
                        SAFE_FREE(err_attr_name);
-                       title = _media_svc_get_title_from_filepath(content_info->path);
+                       title = __media_svc_get_title_from_filepath(content_info->path);
                        if (title) {
                                ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
                                if (ret != MS_MEDIA_ERR_NONE)
@@ -1715,7 +1715,7 @@ int _media_svc_extract_music_metadata_for_update(sqlite3 *handle, media_svc_cont
                char *no_tag_title = NULL;
                media_svc_error("no tag information");
 
-               no_tag_title = _media_svc_get_title_from_filepath(content_info->path);
+               no_tag_title = __media_svc_get_title_from_filepath(content_info->path);
                if (no_tag_title) {
                        ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, no_tag_title);
                        if (ret != MS_MEDIA_ERR_NONE)
@@ -1833,7 +1833,7 @@ int _media_svc_extract_media_metadata(sqlite3 *handle, media_svc_content_info_s
 
                                if (idx == size) {
                                        media_svc_debug("Can't extract title. All string is space");
-                                       title = _media_svc_get_title_from_filepath(content_info->path);
+                                       title = __media_svc_get_title_from_filepath(content_info->path);
                                        if (title) {
                                                ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
                                                if (ret != MS_MEDIA_ERR_NONE)
@@ -1846,7 +1846,7 @@ int _media_svc_extract_media_metadata(sqlite3 *handle, media_svc_content_info_s
                        }
                } else {
                        SAFE_FREE(err_attr_name);
-                       title = _media_svc_get_title_from_filepath(content_info->path);
+                       title = __media_svc_get_title_from_filepath(content_info->path);
                        if (title) {
                                ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, title);
                                if (ret != MS_MEDIA_ERR_NONE)
@@ -2042,7 +2042,7 @@ int _media_svc_extract_media_metadata(sqlite3 *handle, media_svc_content_info_s
                                }
 
                                if (strlen(thumb_path) > 0) {
-                                       ret = _media_svc_save_image(resize_image, resize_size, thumb_path, uid);
+                                       ret = __media_svc_save_image(resize_image, resize_size, thumb_path, uid);
                                        if (ret != MS_MEDIA_ERR_NONE) {
                                                media_svc_error("Fail to Save Thumbnail Image");
                                        } else {
@@ -2100,7 +2100,7 @@ int _media_svc_extract_media_metadata(sqlite3 *handle, media_svc_content_info_s
                char *no_tag_title = NULL;
                media_svc_error("no tag information");
 
-               no_tag_title = _media_svc_get_title_from_filepath(content_info->path);
+               no_tag_title = __media_svc_get_title_from_filepath(content_info->path);
                if (no_tag_title) {
                        ret = __media_svc_malloc_and_strncpy(&content_info->media_meta.title, no_tag_title);
                        if (ret != MS_MEDIA_ERR_NONE)