From d1457f11013b030e17ee037c089722b2c7f35893 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Wed, 22 May 2019 12:47:20 +0900 Subject: Delete unused parameter Change-Id: I6d654025526ac6fd1dbe3f526960af1ed34826f8 Signed-off-by: Minje Ahn --- src/include/common/media-svc-media.h | 2 +- src/include/common/media-svc-util.h | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'src/include/common') diff --git a/src/include/common/media-svc-media.h b/src/include/common/media-svc-media.h index 8af8487..c36861b 100755 --- a/src/include/common/media-svc-media.h +++ b/src/include/common/media-svc-media.h @@ -30,7 +30,7 @@ int _media_svc_count_record_with_path(sqlite3 *handle, const char *storage_id, const char *path, int *count); int _media_svc_get_modified_time(sqlite3 *handle, const char *storage_id, const char *path, int *modified_time); -int _media_svc_insert_item_with_data(sqlite3 *handle, bool is_direct, const char *storage_id, media_svc_content_info_s *content_info, bool stack_query, uid_t uid); +int _media_svc_insert_item_with_data(bool is_direct, const char *storage_id, media_svc_content_info_s *content_info, bool stack_query, uid_t uid); int _media_svc_update_item_with_data(bool is_direct, const char *storage_id, media_svc_content_info_s *content_info, uid_t uid); int _media_svc_get_thumbnail_path_by_path(sqlite3 *handle, const char *path, char *thumbnail_path); int _media_svc_get_media_type_by_path(sqlite3 *handle, const char *storage_id, const char *path, int *media_type); diff --git a/src/include/common/media-svc-util.h b/src/include/common/media-svc-util.h index c92e1b2..6884d39 100755 --- a/src/include/common/media-svc-util.h +++ b/src/include/common/media-svc-util.h @@ -34,17 +34,10 @@ extern "C" { #endif -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef TRUE -#define TRUE 1 -#endif - #define SAFE_FREE(src) { if (src) {free(src); src = NULL; } } #define G_SAFE_FREE(src) { if (src) {g_free(src); src = NULL; } } #define STRING_VALID(str) \ - ((str != NULL && strlen(str) > 0) ? TRUE : FALSE) + ((str != NULL && strlen(str) > 0) ? true : false) #define SAFE_STRLCAT(dst, src, n) g_strlcat(dst, src, n); #define SAFE_STRLCPY(dst, src, n) g_strlcpy(dst, src, n); @@ -148,7 +141,7 @@ int _media_svc_get_pinyin_str(const char *src_str, char **pinyin_str); bool _media_svc_check_pinyin_support(void); int _media_svc_extract_music_metadata_for_update(media_svc_content_info_s *content_info, media_svc_media_type_e media_type); int _media_svc_get_media_type(const char *path, int *mediatype); -bool _media_svc_check_storage_type(ms_user_storage_type_e storage_type); +bool _media_svc_is_valid_storage_type(ms_user_storage_type_e storage_type); #ifdef __cplusplus } -- cgit v1.2.3