2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #ifndef __TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__
20 #define __TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__
22 #include <media_content_type.h>
26 #endif /* __cplusplus */
30 * @file media_content_internal.h
31 * @brief This file contains API on main functional operations with storage that are related to media resources in the media database. \n
32 * Operations include: inserting a new storage in media to the media database, removing storage from database, \n
36 int media_bookmark_create(const char *media_id, time_t time, media_bookmark_h *bookmark);
37 int media_bookmark_set_thumbnail_path(media_bookmark_h bookmark, const char *path);
38 int media_bookmark_insert_to_db_v2(media_bookmark_h bookmark);
41 int media_playlist_create(media_playlist_h *playlist);
42 int media_playlist_get_play_order_v2(int playlist_id, int playlist_member_id, int *play_order);
43 int media_playlist_insert_to_db_v2(media_playlist_h playlist);
44 int media_playlist_update_to_db_v2(int playlist_id, media_playlist_h playlist);
47 int media_tag_create(media_tag_h *tag);
48 int media_tag_insert_to_db_v2(media_tag_h tag);
49 int media_tag_update_to_db_v2(int tag_id, media_tag_h tag);
52 int media_filter_set_condition_v2(filter_h filter, const char *condition);
53 int media_filter_get_condition_v2(filter_h filter, char **condition);
54 int media_filter_set_order_v2(filter_h filter, const char *order);
55 int media_filter_get_order_v2(filter_h filter, char **order);
58 /* Only for system session process */
59 int media_content_connect_with_uid(uid_t uid);
63 #endif /* __cplusplus */
64 #endif /*__TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__*/