Mercurial > geeqie.yaz
annotate src/collect-io.h @ 844:efed9a1520d6
implemented generic FileData cache
use it for caching decoded exif data
author | nadvornik |
---|---|
date | Wed, 18 Jun 2008 22:26:52 +0000 |
parents | 278962ba162a |
children | 1646720364cf |
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 | |
14 #ifndef COLLECT_IO_H | |
15 #define COLLECT_IO_H | |
16 | |
358 | 17 typedef enum { |
18 COLLECTION_LOAD_NONE = 0, | |
19 COLLECTION_LOAD_APPEND = 1 << 0, | |
20 COLLECTION_LOAD_FLUSH = 1 << 1, | |
359
96fb24f948b7
Merge collection_load_only_geometry() into collection_load().
zas_
parents:
358
diff
changeset
|
21 COLLECTION_LOAD_GEOMETRY= 1 << 2, |
358 | 22 } CollectionLoadFlags; |
9 | 23 |
358 | 24 gint collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags); |
9 | 25 |
358 | 26 gint collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags); |
9 | 27 void collection_load_stop(CollectionData *cd); |
28 | |
29 void collection_load_thumb_idle(CollectionData *cd); | |
30 | |
31 gint collection_save(CollectionData *cd, const gchar *path); | |
32 | |
33 gint collection_load_only_geometry(CollectionData *cd, const gchar *path); | |
34 | |
35 | |
36 /* these are used to update collections contained in user's collection | |
37 * folder when moving or renaming files. | |
38 * also handles: | |
39 * deletes file when newpath == NULL | |
40 * adds file when oldpath == NULL | |
41 */ | |
138 | 42 void collect_manager_moved(FileData *fd); |
9 | 43 |
44 /* add or removing from a specific collection */ | |
138 | 45 void collect_manager_add(FileData *fd, const gchar *collection); |
46 void collect_manager_remove(FileData *fd, const gchar *collection); | |
9 | 47 |
48 /* commit pending operations to disk */ | |
49 void collect_manager_flush(void); | |
50 | |
799 | 51 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data); |
9 | 52 |
53 | |
54 #endif |