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);
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);
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
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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, };
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, };