annotate src/collect-io.h @ 737:8a8873e7a552

Make shell command and its option rc file options instead of hardcoded strings. This allows users to modify the shell command that execute "editors". Two new options appear in rc file: - shell.path (default to "/bin/sh") - shell.options (default to "-c") These options can only be changed from the rc file, not at runtime. Tests are made to check that shell.path is not empty and lead to an executable file.
author zas_
date Thu, 22 May 2008 20:22:13 +0000
parents 48c8e49b571c
children 278962ba162a
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
475
48c8e49b571c updated copyright in source files
nadvornik
parents: 446
diff changeset
4 * Copyright (C) 2008 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * 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
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
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
17 typedef enum {
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
18 COLLECTION_LOAD_NONE = 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
19 COLLECTION_LOAD_APPEND = 1 << 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
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
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
22 } CollectionLoadFlags;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
24 gint collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
26 gint collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 void collection_load_stop(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 void collection_load_thumb_idle(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 gint collection_save(CollectionData *cd, const gchar *path);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33 gint collection_load_only_geometry(CollectionData *cd, const gchar *path);
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
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 /* these are used to update collections contained in user's collection
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 * folder when moving or renaming files.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 * also handles:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 * deletes file when newpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 * adds file when oldpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41 */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
42 void collect_manager_moved(FileData *fd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44 /* add or removing from a specific collection */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
45 void collect_manager_add(FileData *fd, const gchar *collection);
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
46 void collect_manager_remove(FileData *fd, const gchar *collection);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
48 /* commit pending operations to disk */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
49 void collect_manager_flush(void);
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
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53 #endif