X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fmedia-svc.h;h=8bf12893d728f6d6ef5ad8ea52b62e3e24ed9528;hb=refs%2Fheads%2Faccepted%2Ftizen_unified_toolchain;hp=dab03e1d34d6c8c620b30e066d88459d7b648913;hpb=63ecc4621b45bee549db299c519b96fb97cd8af1;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git diff --git a/include/media-svc.h b/include/media-svc.h old mode 100755 new mode 100644 index dab03e1..603ae15 --- a/include/media-svc.h +++ b/include/media-svc.h @@ -3,8 +3,6 @@ * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Hyunjun Ko , Haejeong Kim - * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -24,9 +22,10 @@ #ifndef _MEDIA_SVC_H_ #define _MEDIA_SVC_H_ -#include #include +#include #include +#include #ifdef __cplusplus extern "C" { @@ -35,13 +34,13 @@ 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_insert_folder(sqlite3 *handle, const char *storage_id, ms_user_storage_type_e storage_type, const char *path, uid_t uid); +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); -int media_svc_insert_item_bulk(sqlite3 *handle, const char *storage_id, ms_user_storage_type_e storage_type, const char *path, uid_t uid); -int media_svc_insert_item_immediately(sqlite3 *handle, const char *storage_id, ms_user_storage_type_e storage_type, const char *path, uid_t uid); +int media_svc_insert_item_bulk(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid); +int media_svc_insert_item_immediately(sqlite3 *handle, const char *storage_id, const char *path, uid_t uid); int media_svc_move_item(sqlite3 *handle, const char *src_path, const char *dest_path, @@ -51,15 +50,15 @@ 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, ms_user_storage_type_e storage_type, const char *path, uid_t uid); -int media_svc_send_dir_update_noti(const char *dir_path, const char *folder_id, media_item_update_type_e update_type, int pid); -int media_svc_publish_noti(media_item_update_type_e update_type, const char *path, media_type_e media_type, const char *uuid, const char *mime_type); +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); int media_svc_check_storage(sqlite3 *handle, const char *storage_id, char **storage_path, int *validity); -int media_svc_insert_storage(sqlite3 *handle, const char *storage_id, const char *storage_path, ms_user_storage_type_e storage_type, uid_t uid); +int media_svc_insert_storage(sqlite3 *handle, const char *storage_id, const char *storage_path, uid_t uid); int media_svc_update_storage(sqlite3 *handle, const char *storage_id, const char *storage_path, uid_t uid); -int media_svc_set_storage_validity(sqlite3 *handle, const char *storage_id, int validity, uid_t uid); +int media_svc_set_storage_validity(const char *storage_id, int validity, uid_t uid); int media_svc_get_storage_id(sqlite3 *handle, const char *path, char *storage_id, uid_t uid); int media_svc_set_folder_validity(const char *start_path, int validity, bool is_recursive, uid_t uid); @@ -72,6 +71,7 @@ int media_svc_get_media_type(const char *path, int *mediatype); int media_svc_create_thumbnail(const char *file_path, int media_type, uid_t uid, char **thumbnail_path); int media_svc_get_book_by_keyword(sqlite3 *handle, const char *keyword, uid_t uid, GList **result); +int media_svc_check_db(sqlite3 *handle, uid_t uid); #ifdef __cplusplus }