4 * Copyright (C) 2008 - 2012 The Geeqie Team
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!
18 typedef struct _FilterEntry FilterEntry;
23 FileFormatClass file_class;
26 gboolean allow_sidecar;
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);
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);
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);
46 void filter_write_list(GString *outstr, gint indent);
47 void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values);
50 void sidecar_ext_parse(const gchar *text);
51 gchar *sidecar_ext_to_string(void);
52 GList *sidecar_ext_get_list(void);
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */