sidecar files grouping was made case-insensitive
[geeqie.git] / src / filefilter.h
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         gboolean 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, gboolean quoted);
45 gchar *sidecar_ext_to_string(void);
46 GList *sidecar_ext_get_list(void);
47
48 gint ishidden(const gchar *name);
49
50 #endif
51 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */