Remove unused parameters 96/313996/1 accepted/tizen/unified/20240708.103320 accepted/tizen/unified/dev/20240709.043423 accepted/tizen/unified/x/20240709.014203
authorMinje Ahn <minje.ahn@samsung.com>
Thu, 4 Jul 2024 01:17:35 +0000 (10:17 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Thu, 4 Jul 2024 01:17:35 +0000 (10:17 +0900)
Change-Id: Ib84e4fa24bd1aa81b8165d8d332300db12470c81
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/media-svc.h
packaging/libmedia-service.spec
plugin/media-content-plugin.c
src/media-svc.c

index 8bf12893d728f6d6ef5ad8ea52b62e3e24ed9528..603ae15004d3982d890027d749d1402b55d3d2de 100644 (file)
@@ -34,8 +34,8 @@ extern "C" {
 
 int media_svc_check_table_exist(sqlite3 *handle, bool *exist);
 int media_svc_create_table(uid_t uid);
-int media_svc_check_item_exist_by_path(sqlite3 *handle, const char *storage_id, const char *path);
-int media_svc_get_modified_time(sqlite3 *handle, const char *storage_id, const char *path, int *modified_time);
+int media_svc_check_item_exist_by_path(sqlite3 *handle, const char *path);
+int media_svc_get_modified_time(sqlite3 *handle, const char *path, int *modified_time);
 int media_svc_insert_folder(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid);
 int media_svc_insert_item_begin(bool with_noti, int from_pid);
 int media_svc_insert_item_end(uid_t uid);
@@ -50,8 +50,8 @@ int media_svc_move_item(sqlite3 *handle,
                                                uid_t uid);
 
 int media_svc_set_item_validity(const char *path, int validity, uid_t uid);
-int media_svc_delete_item_by_path(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid);
-int media_svc_refresh_item(sqlite3 *handle, bool is_direct, const char *storage_id, const char *path, uid_t uid);
+int media_svc_delete_item_by_path(sqlite3 *handle, const char *path, uid_t uid);
+int media_svc_refresh_item(sqlite3 *handle, bool is_direct, const char *path, uid_t uid);
 int media_svc_send_dir_update_noti(const char *dir_path, const char *folder_id, int update_type, int pid);
 int media_svc_publish_update_noti(const char *path, int media_type, const char *uuid, const char *mime_type);
 
index 017955b42b3d2473c7df8a4883b627d2bae213ba..526d5f3aa9f186ed97f5da8344bdbed91b429df2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmedia-service
 Summary:    Media information service library for multimedia applications
-Version:    0.6.8
+Version:    0.6.9
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 2c32c18ef67b2c826bea282b7b27db0266b4412f..fc9f155751ab34773b430e67595484772fc3f051 100644 (file)
@@ -35,7 +35,7 @@ int insert_item(sqlite3 *handle, const char *storage_id, const char *file_path,
        return media_svc_insert_item_bulk(handle, storage_id, file_path, uid);
 }
 
-int set_item_validity(const char *storage_id, const char *file_path, int validity, uid_t uid)
+int set_item_validity(const char *file_path, int validity, uid_t uid)
 {
        return media_svc_set_item_validity(file_path, validity, uid);
 }
@@ -50,7 +50,7 @@ int check_db(sqlite3 *handle, uid_t uid)
        return media_svc_check_db(handle, uid);
 }
 
-int check_storage(sqlite3 *handle, const char *storage_id, char **storage_path, int *validity, uid_t uid)
+int check_storage(sqlite3 *handle, const char *storage_id, char **storage_path, int *validity)
 {
        return media_svc_check_storage(handle, storage_id, storage_path, validity);
 }
@@ -65,12 +65,12 @@ int update_storage(sqlite3 *handle, const char *storage_id, const char *storage_
        return media_svc_update_storage(handle, storage_id, storage_path, uid);
 }
 
-int set_storage_validity(sqlite3 *handle, const char *storage_id, int validity, uid_t uid)
+int set_storage_validity(const char *storage_id, int validity, uid_t uid)
 {
        return media_svc_set_storage_validity(storage_id, validity, uid);
 }
 
-int set_all_storage_validity(sqlite3 *handle, int validity, uid_t uid)
+int set_all_storage_validity(int validity, uid_t uid)
 {
        return media_svc_set_storage_validity(NULL, validity, uid);
 }
@@ -85,12 +85,12 @@ int insert_folder(sqlite3 *handle, const char *storage_id, const char *file_path
        return media_svc_insert_folder(handle, storage_id, file_path, uid);
 }
 
-int set_folder_validity(sqlite3 *handle, const char *storage_id, const char *start_path, int validity, bool is_recursive, uid_t uid)
+int set_folder_validity(sqlite3 *handle, const char *start_path, int validity, bool is_recursive, uid_t uid)
 {
        return media_svc_set_folder_validity(start_path, validity, is_recursive, uid);
 }
 
-int check_folder_exist(sqlite3 *handle, const char *storage_id, const char *folder_path)
+int check_folder_exist(sqlite3 *handle, const char *folder_path)
 {
        return media_svc_check_folder_exist_by_path(handle, folder_path);
 }
@@ -100,7 +100,7 @@ int get_media_type(const char *path, int *mediatype)
        return media_svc_get_media_type(path, mediatype);
 }
 
-int refresh_item(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid)
+int refresh_item(sqlite3 *handle, const char *path, uid_t uid)
 {
-       return media_svc_refresh_item(handle, true, storage_id, path, uid);
+       return media_svc_refresh_item(handle, true, path, uid);
 }
index b1db1728beecd0e0e3e4f59f4ed3494e5a013011..bbbfbb6ffd5e6e5fca6d13dd1c39ecd42e269835 100644 (file)
@@ -48,12 +48,12 @@ int media_svc_create_table(uid_t uid)
        return _media_svc_create_table(uid);
 }
 
-int media_svc_check_item_exist_by_path(sqlite3 *handle, const char *storage_id, const char *path)
+int media_svc_check_item_exist_by_path(sqlite3 *handle, const char *path)
 {
        return _media_svc_check_data_by_path(handle, path);
 }
 
-int media_svc_get_modified_time(sqlite3 *handle, const char *storage_id, const char *path, int *modified_time)
+int media_svc_get_modified_time(sqlite3 *handle, const char *path, int *modified_time)
 {
        return _media_svc_get_modified_time(handle, path, modified_time);
 }
@@ -305,7 +305,7 @@ int media_svc_set_item_validity(const char *path, int validity, uid_t uid)
        return ret;
 }
 
-int media_svc_delete_item_by_path(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid)
+int media_svc_delete_item_by_path(sqlite3 *handle, const char *path, uid_t uid)
 {
        int ret = MS_MEDIA_ERR_NONE;
        char thumb_path[MEDIA_SVC_PATHNAME_SIZE] = {0, };
@@ -341,7 +341,7 @@ int media_svc_delete_item_by_path(sqlite3 *handle, const char *storage_id, const
        return MS_MEDIA_ERR_NONE;
 }
 
-int media_svc_refresh_item(sqlite3 *handle, bool is_direct, const char *storage_id, const char *path, uid_t uid)
+int media_svc_refresh_item(sqlite3 *handle, bool is_direct, const char *path, uid_t uid)
 {
        int ret = MS_MEDIA_ERR_NONE;
        char thumb_path[MEDIA_SVC_PATHNAME_SIZE + 1] = {0, };