annotate src/filefilter.h @ 653:e06947d07086

Expand tilde with file: and view: remote parameters. Now these are working: geeqie -r file:~/dir geeqie -r view:~user/file
author zas_
date Tue, 13 May 2008 16:09:43 +0000
parents b690cecbf5b8
children a7289f9e8d29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
1 /*
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
2 * Geeqie
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
3 * (C) 2004 John Ellis
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
4 * Copyright (C) 2008 The Geeqie Team
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
5 *
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
6 * Author: John Ellis
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
7 *
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
9 * Please read the included file COPYING for more information.
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
11 */
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
12
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
13
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
14 #ifndef FILEFILTER_H
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
15 #define FILEFILTER_H
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
16
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
17
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
18 typedef struct _FilterEntry FilterEntry;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
19 struct _FilterEntry {
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
20 gchar *key;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
21 gchar *description;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
22 gchar *extensions;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
23 FileFormatClass file_class;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
24 gint enabled;
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
25 };
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
26
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
27 /* you can change, but not add or remove entries from the returned list */
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
28 GList *filter_get_list(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
29 void filter_remove_entry(FilterEntry *fe);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
30
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
31 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gint enabled);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
32 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gint enabled);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
33 void filter_add_defaults(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
34 void filter_reset(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
35 void filter_rebuild(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
36 GList *filter_to_list(const gchar *extensions);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
37
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
38 gint filter_name_exists(const gchar *name);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
39 gint filter_file_class(const gchar *name, FileFormatClass file_class);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
40
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
41 void filter_write_list(SecureSaveInfo *ssi);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
42 void filter_parse(const gchar *text);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
43
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
44 void sidecar_ext_parse(const gchar *text, gint quoted);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
45 void sidecar_ext_write(SecureSaveInfo *ssi);
609
b690cecbf5b8 Use function(void) instead of function() for declaring functions which
zas_
parents: 586
diff changeset
46 gchar *sidecar_ext_to_string(void);
b690cecbf5b8 Use function(void) instead of function() for declaring functions which
zas_
parents: 586
diff changeset
47 void sidecar_ext_add_defaults(void);
586
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
48 GList *sidecar_ext_get_list(void);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
49
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
50 gint ishidden(const gchar *name);
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
51
905688aa2317 split filelist.c to filefilter.c and filedata.c
nadvornik
parents:
diff changeset
52 #endif