Remove commented out code.
[geeqie.git] / src / filefilter.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  * Copyright (C) 2008 - 2012 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         gboolean writable;
26         gboolean allow_sidecar;
27 };
28
29 /* you can change, but not add or remove entries from the returned list */
30 GList *filter_get_list(void);
31 void filter_remove_entry(FilterEntry *fe);
32
33 void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
34 void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
35 void filter_add_defaults(void);
36 void filter_reset(void);
37 void filter_rebuild(void);
38 GList *filter_to_list(const gchar *extensions);
39
40 const gchar *registered_extension_from_path(const gchar *name);
41 gboolean filter_name_exists(const gchar *name);
42 gboolean filter_file_class(const gchar *name, FileFormatClass file_class);
43 gboolean filter_name_is_writable(const gchar *name);
44 gboolean filter_name_allow_sidecar(const gchar *name);
45
46 void filter_write_list(GString *outstr, gint indent);
47 void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values);
48
49
50 void sidecar_ext_parse(const gchar *text);
51 gchar *sidecar_ext_to_string(void);
52 GList *sidecar_ext_get_list(void);
53
54 #endif
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */