Mercurial > geeqie
comparison src/filelist.h @ 138:71e1ebee420e
replaced gchar* path with FileData *fd
author | nadvornik |
---|---|
date | Tue, 11 Sep 2007 20:06:29 +0000 |
parents | d907d608745f |
children | 754c1e4349b6 |
comparison
equal
deleted
inserted
replaced
137:be3328a58875 | 138:71e1ebee420e |
---|---|
48 gchar *text_from_size(gint64 size); | 48 gchar *text_from_size(gint64 size); |
49 gchar *text_from_size_abrev(gint64 size); | 49 gchar *text_from_size_abrev(gint64 size); |
50 const gchar *text_from_time(time_t t); | 50 const gchar *text_from_time(time_t t); |
51 | 51 |
52 /* this expects a locale encoded path */ | 52 /* this expects a locale encoded path */ |
53 FileData *file_data_new(const gchar *path, struct stat *st); | 53 FileData *file_data_new_local(const gchar *path, struct stat *st); |
54 /* this expects a utf-8 path */ | 54 /* this expects a utf-8 path */ |
55 FileData *file_data_new_simple(const gchar *path); | 55 FileData *file_data_new(const gchar *path_utf8, struct stat *st); |
56 /* this expects a utf-8 path */ | |
57 FileData *file_data_new_simple(const gchar *path_utf8); | |
56 void file_data_free(FileData *fd); | 58 void file_data_free(FileData *fd); |
59 FileData *file_data_ref(FileData *fd); | |
60 void file_data_unref(FileData *fd); | |
57 | 61 |
62 FileData *file_data_do_change(FileData *fd); | |
63 FileDataChangeInfo *file_data_change_info_new(const gchar *src, const gchar *dest, FileData *fd); | |
64 void file_data_change_info_free(FileDataChangeInfo *fdci, FileData *fd); | |
65 | |
66 gint filelist_sort_compare_filedata(FileData *fa, FileData *fb); | |
58 GList *filelist_sort(GList *list, SortType method, gint ascend); | 67 GList *filelist_sort(GList *list, SortType method, gint ascend); |
59 GList *filelist_insert_sort(GList *list, FileData *fd, SortType method, gint ascend); | 68 GList *filelist_insert_sort(GList *list, FileData *fd, SortType method, gint ascend); |
69 GList *filelist_sort_full(GList *list, SortType method, gint ascend, GCompareFunc cb); | |
70 GList *filelist_insert_sort_full(GList *list, void *data, SortType method, gint ascend, GCompareFunc cb); | |
60 | 71 |
61 gint filelist_read(const gchar *path, GList **files, GList **dirs); | 72 gint filelist_read(const gchar *path, GList **files, GList **dirs); |
73 gint filelist_read_lstat(const gchar *path, GList **files, GList **dirs); | |
62 void filelist_free(GList *list); | 74 void filelist_free(GList *list); |
75 GList *filelist_copy(GList *list); | |
76 GList *filelist_from_path_list(GList *list); | |
77 GList *filelist_to_path_list(GList *list); | |
78 | |
79 GList *filelist_filter(GList *list, gint is_dir_list); | |
80 | |
81 GList *filelist_sort_path(GList *list); | |
82 GList *filelist_recursive(const gchar *path); | |
63 | 83 |
64 #endif | 84 #endif |
65 | 85 |
66 | 86 |