Fix select query
[platform/core/api/media-content.git] / include_product / media_uhd.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17
18 #ifndef __TIZEN_MEDIA_UHD_H__
19 #define __TIZEN_MEDIA_UHD_H__
20
21 #include <media_content_type.h>
22 #include <media_content_type_product.h>
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29 int media_uhd_get_media_count_from_db(filter_h filter, int *media_count);
30 int media_uhd_foreach_media_from_db(filter_h filter, media_uhd_cb callback, void *user_data);
31 int media_uhd_destroy(media_uhd_h uhd);
32 int media_uhd_clone(media_uhd_h *dst, media_uhd_h src);
33
34 int media_uhd_get_uhd_from_db(const char *media_id, media_uhd_h *uhd);
35 int media_uhd_get_media_id(media_uhd_h uhd, char **media_id);
36 int media_uhd_get_storage_id(media_uhd_h uhd, char **storage_id);
37 int media_uhd_get_path(media_uhd_h uhd, char **path);
38 int media_uhd_get_size(media_uhd_h uhd, unsigned long long *size);
39 int media_uhd_get_content_id(media_uhd_h uhd, char **content_id);
40 int media_uhd_get_content_title(media_uhd_h uhd, char **content_title);
41 int media_uhd_get_file_name(media_uhd_h uhd, char **file_name);
42 int media_uhd_get_release_date(media_uhd_h uhd, char **release_date);
43 int media_uhd_get_modified_time(media_uhd_h uhd, time_t *modified_time);
44 int media_uhd_get_played_position(media_uhd_h uhd, int *played_position);
45 int media_uhd_get_sub_type(media_uhd_h uhd, int *sub_type);
46 int media_uhd_get_played_count(media_uhd_h uhd, int *played_count);
47
48 int media_uhd_set_played_position(media_uhd_h uhd, int played_position);
49 int media_uhd_set_content_title(media_uhd_h uhd, const char *content_title);
50 int media_uhd_set_release_date(media_uhd_h uhd, const char *release_date);
51 int media_uhd_set_sub_type(media_uhd_h uhd, int sub_type);
52 int media_uhd_set_played_count(media_uhd_h uhd, int played_count);
53
54 int media_uhd_update_to_db(media_uhd_h uhd);
55
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59
60 #endif /* __TIZEN_MEDIA_UHD_H__ */