initial upload for tizen 2.0 beta
[apps/home/gallery.git] / include / data / gl-data-util.h
1 /*
2   * Copyright 2012  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://www.tizenopensource.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 #ifndef _GL_DATA_UTIL_H_
18 #define _GL_DATA_UTIL_H_
19
20 #include <eina_list.h>
21 #include <glib.h>
22 #include <Elementary.h>
23 #include "gl-data.h"
24
25 #ifdef _cplusplus
26 extern "C"
27 {
28 #endif
29
30 bool _gl_data_util_get_file_dir_name(const char *file_path, char *filename,
31                                      char *dir_name, char *dir_path);
32 gl_item *_gl_data_util_calloc_gitem(void);
33 int _gl_data_util_free_gitem(gl_item *gitem);
34 gl_cluster *_gl_data_util_calloc_gcluster(void);
35 int _gl_data_util_free_gcluster(gl_cluster *gcluster);
36 gl_cluster *_gl_data_util_new_gcluster_all(void *data, int count);
37 gl_cluster_list *_gl_data_util_calloc_cluster_list(void);
38 int _gl_data_util_clear_gtype_item_list(Eina_List **elist);
39 int _gl_data_util_clear_item_list(Eina_List **elist);
40 int _gl_data_util_get_selected_cluster_id_list(void *data,
41                                                Eina_List **sel_id_list);
42 int _gl_data_util_get_selected_item_id_list(void *data,
43                                             Eina_List **sel_id_list);
44 bool _gl_data_util_check_selected_id(Eina_List **sel_id_list, const char *id);
45 int _gl_data_util_free_selected_id_list(Eina_List **sel_id_list);
46 int _gl_data_util_check_album_selected_files(gl_cluster *album, int *drm_cnt,
47                                              int *img_cnt, int *sel_cnt);
48
49 #ifdef _cplusplus
50 }
51 #endif
52 #endif /* _GL_DATA_UTIL_H_ */
53