Tizen 2.0 Release
[apps/core/preloaded/myfiles.git] / src / include / mf-media-content.h
1 /*
2  * Copyright 2013         Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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://floralicense.org/license/
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
19
20 #ifndef __MF_MEDIA_CONTENT_H_DEF__
21 #define __MF_MEDIA_CONTENT_H_DEF__
22
23 typedef struct __mf_condition_s mf_condition_s;
24 struct __mf_condition_s {
25         char *cond;                              /*set media type or favorite type, or other query statement*/
26         media_content_collation_e collate_type;  /*collate type*/
27         media_content_order_e sort_type;         /*sort type*/
28         char *sort_keyword;                      /*sort keyword*/
29         int offset;                              /*offset*/
30         int count;                               /*count*/
31         bool with_meta;                          /*whether get image or video info*/
32 };
33
34 void mf_media_content_scan_file(const char *path);
35 void mf_media_content_scan_folder(const char *path);
36 int mf_media_content_data_get(void *data, char *condition, bool (*func) (media_info_h media, void *data));
37
38
39 #endif
40