annotate src/collect-io.h @ 363:5b8617c3821c

collection_load(): accept whitespaces at start of lines.
author zas_
date Mon, 14 Apr 2008 23:08:27 +0000
parents 96fb24f948b7
children ddabc4873a3f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 138
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
4 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13 #ifndef COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #define COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
16 typedef enum {
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
17 COLLECTION_LOAD_NONE = 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
18 COLLECTION_LOAD_APPEND = 1 << 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
19 COLLECTION_LOAD_FLUSH = 1 << 1,
359
96fb24f948b7 Merge collection_load_only_geometry() into collection_load().
zas_
parents: 358
diff changeset
20 COLLECTION_LOAD_GEOMETRY= 1 << 2,
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
21 } CollectionLoadFlags;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
23 gint collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
25 gint collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26 void collection_load_stop(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 void collection_load_thumb_idle(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30 gint collection_save(CollectionData *cd, const gchar *path);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32 gint collection_load_only_geometry(CollectionData *cd, const gchar *path);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 /* these are used to update collections contained in user's collection
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 * folder when moving or renaming files.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 * also handles:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 * deletes file when newpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 * adds file when oldpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
41 void collect_manager_moved(FileData *fd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43 /* add or removing from a specific collection */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
44 void collect_manager_add(FileData *fd, const gchar *collection);
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
45 void collect_manager_remove(FileData *fd, const gchar *collection);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
46
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47 /* commit pending operations to disk */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
48 void collect_manager_flush(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
49
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
50
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
51
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
52 #endif
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53