Mercurial > geeqie.yaz
annotate src/filefilter.h @ 1452:67b40740122e
gint -> gboolean where applicable.
author | zas_ |
---|---|
date | Mon, 16 Mar 2009 19:11:39 +0000 |
parents | 0061979f7f6d |
children |
rev | line source |
---|---|
586 | 1 /* |
2 * Geeqie | |
3 * (C) 2004 John Ellis | |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
586 | 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; | |
736 | 24 gboolean enabled; |
1239
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
25 gboolean writable; |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
26 gboolean allow_sidecar; |
586 | 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 | |
1424 | 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); | |
586 | 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 | |
1239
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
40 gboolean filter_name_exists(const gchar *name); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
41 gboolean filter_file_class(const gchar *name, FileFormatClass file_class); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
42 gboolean filter_name_is_writable(const gchar *name); |
254b09942e68
metadata write mode (direct or sidecar) made configurable for each file
nadvornik
parents:
1229
diff
changeset
|
43 gboolean filter_name_allow_sidecar(const gchar *name); |
586 | 44 |
1309 | 45 void filter_write_list(GString *outstr, gint indent); |
46 void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values); | |
47 | |
586 | 48 |
1327 | 49 void sidecar_ext_parse(const gchar *text); |
609
b690cecbf5b8
Use function(void) instead of function() for declaring functions which
zas_
parents:
586
diff
changeset
|
50 gchar *sidecar_ext_to_string(void); |
586 | 51 GList *sidecar_ext_get_list(void); |
52 | |
53 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
736
diff
changeset
|
54 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |