remove unused code and description.
[platform/core/multimedia/libmedia-service.git] / include / media-svc.h
1 /*
2  * libmedia-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23
24 #ifndef _MEDIA_SVC_H_
25 #define _MEDIA_SVC_H_
26
27 #include "media-svc-types.h"
28 #include <media-util-noti.h>
29 #include <stdbool.h>
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34
35 int media_svc_connect(MediaSvcHandle **handle,uid_t uid);
36 int media_svc_disconnect(MediaSvcHandle *handle);
37 int media_svc_create_table(MediaSvcHandle *handle, uid_t uid);
38 int media_svc_check_item_exist_by_path(MediaSvcHandle *handle, const char *path);
39 int media_svc_insert_folder(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, const char *path, uid_t uid);
40 int media_svc_insert_item_begin(MediaSvcHandle *handle, int with_noti, int data_cnt, int from_pid);
41 int media_svc_insert_item_end(MediaSvcHandle *handle, uid_t uid);
42 int media_svc_insert_item_bulk(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, const char *path, int is_burst, uid_t uid);
43 int media_svc_insert_item_immediately(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, const char *path, uid_t uid);
44 int media_svc_move_item_begin(MediaSvcHandle *handle, int data_cnt);
45 int media_svc_move_item_end(MediaSvcHandle *handle, uid_t uid);
46 int media_svc_move_item(MediaSvcHandle *handle, media_svc_storage_type_e src_storage, const char *src_path, media_svc_storage_type_e dest_storage, const char *dest_path, uid_t uid);
47 int media_svc_set_item_validity_begin(MediaSvcHandle *handle, int data_cnt);
48 int media_svc_set_item_validity_end(MediaSvcHandle *handle, uid_t uid);
49 int media_svc_set_item_validity(MediaSvcHandle *handle, const char *path, int validity, uid_t uid);
50 int media_svc_delete_item_by_path(MediaSvcHandle *handle, const char *path, uid_t uid);
51 int media_svc_delete_all_items_in_storage(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, uid_t uid);
52 int media_svc_delete_invalid_items_in_storage(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, uid_t uid);
53 int media_svc_delete_invalid_items_in_folder(MediaSvcHandle *handle, const char *folder_path, uid_t uid);
54 int media_svc_set_all_storage_items_validity(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, int validity, uid_t uid);
55 int media_svc_set_folder_items_validity(MediaSvcHandle *handle, const char *folder_path, int validity, int recursive, uid_t uid);
56 int media_svc_refresh_item(MediaSvcHandle *handle, media_svc_storage_type_e storage_type, const char *path, uid_t uid);
57 int media_svc_rename_folder(MediaSvcHandle *handle, const char *src_path, const char *dst_path, uid_t uid);
58 int media_svc_request_update_db(const char *db_query, uid_t uid);
59 int media_svc_get_storage_type(const char *path, media_svc_storage_type_e *storage_type);
60 int media_svc_get_mime_type(const char *path, char *mimetype);
61 int media_svc_get_media_type(const char *path, const char *mime_type, media_svc_media_type_e *media_type);
62 int media_svc_send_dir_update_noti(MediaSvcHandle *handle, const char *dir_path);
63 int media_svc_count_invalid_items_in_folder(MediaSvcHandle *handle, const char *folder_path, int *count);
64 int media_svc_get_pinyin(MediaSvcHandle *handle, const char * src_str, char **pinyin_str);
65 int media_svc_check_pinyin_support(bool *support);
66
67
68 #ifdef __cplusplus
69 }
70 #endif
71
72 #endif /*_MEDIA_SVC_H_*/