comparison src/filefilter.h @ 586:905688aa2317

split filelist.c to filefilter.c and filedata.c
author nadvornik
date Mon, 05 May 2008 19:11:12 +0000
parents
children b690cecbf5b8
comparison
equal deleted inserted replaced
585:4875d67823b4 586:905688aa2317
1 /*
2 * Geeqie
3 * (C) 2004 John Ellis
4 * Copyright (C) 2008 The Geeqie Team
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 FILEFILTER_H
15 #define FILEFILTER_H
16
17
18 typedef struct _FilterEntry FilterEntry;
19 struct _FilterEntry {
20 gchar *key;
21 gchar *description;
22 gchar *extensions;
23 FileFormatClass file_class;
24 gint enabled;
25 };
26
27 /* you can change, but not add or remove entries from the returned list */
28 GList *filter_get_list(void);
29 void filter_remove_entry(FilterEntry *fe);
30
31 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gint enabled);
32 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gint enabled);
33 void filter_add_defaults(void);
34 void filter_reset(void);
35 void filter_rebuild(void);
36 GList *filter_to_list(const gchar *extensions);
37
38 gint filter_name_exists(const gchar *name);
39 gint filter_file_class(const gchar *name, FileFormatClass file_class);
40
41 void filter_write_list(SecureSaveInfo *ssi);
42 void filter_parse(const gchar *text);
43
44 void sidecar_ext_parse(const gchar *text, gint quoted);
45 void sidecar_ext_write(SecureSaveInfo *ssi);
46 char *sidecar_ext_to_string();
47 void sidecar_ext_add_defaults();
48 GList *sidecar_ext_get_list(void);
49
50 gint ishidden(const gchar *name);
51
52 #endif