Mercurial > geeqie
annotate src/filedata.h @ 586:905688aa2317
split filelist.c to filefilter.c and filedata.c
author | nadvornik |
---|---|
date | Mon, 05 May 2008 19:11:12 +0000 |
parents | src/filelist.h@9dc0513837b5 |
children | 2b7b966f61cf |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 | |
586 | 14 #ifndef FILEDATA_H |
15 #define FILEDATA_H | |
9 | 16 |
17 gchar *text_from_size(gint64 size); | |
18 gchar *text_from_size_abrev(gint64 size); | |
19 const gchar *text_from_time(time_t t); | |
20 | |
21 /* this expects a utf-8 path */ | |
138 | 22 FileData *file_data_new_simple(const gchar *path_utf8); |
145
8be2cc687304
fixed grouping sidecar files and made it configurable via config file
nadvornik
parents:
143
diff
changeset
|
23 |
138 | 24 FileData *file_data_ref(FileData *fd); |
25 void file_data_unref(FileData *fd); | |
9 | 26 |
241 | 27 void file_data_do_change(FileData *fd); |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
139
diff
changeset
|
28 gboolean file_data_add_change_info(FileData *fd, FileDataChangeType type, const gchar *src, const gchar *dest); |
138 | 29 void file_data_change_info_free(FileDataChangeInfo *fdci, FileData *fd); |
30 | |
139 | 31 gchar *sidecar_file_data_list_to_string(FileData *fd); |
32 | |
138 | 33 gint filelist_sort_compare_filedata(FileData *fa, FileData *fb); |
167 | 34 gint filelist_sort_compare_filedata_full(FileData *fa, FileData *fb, SortType method, gint ascend); |
9 | 35 GList *filelist_sort(GList *list, SortType method, gint ascend); |
36 GList *filelist_insert_sort(GList *list, FileData *fd, SortType method, gint ascend); | |
138 | 37 GList *filelist_sort_full(GList *list, SortType method, gint ascend, GCompareFunc cb); |
38 GList *filelist_insert_sort_full(GList *list, void *data, SortType method, gint ascend, GCompareFunc cb); | |
9 | 39 |
40 gint filelist_read(const gchar *path, GList **files, GList **dirs); | |
138 | 41 gint filelist_read_lstat(const gchar *path, GList **files, GList **dirs); |
9 | 42 void filelist_free(GList *list); |
138 | 43 GList *filelist_copy(GList *list); |
44 GList *filelist_from_path_list(GList *list); | |
45 GList *filelist_to_path_list(GList *list); | |
46 | |
47 GList *filelist_filter(GList *list, gint is_dir_list); | |
48 | |
49 GList *filelist_sort_path(GList *list); | |
50 GList *filelist_recursive(const gchar *path); | |
9 | 51 |
52 #endif |