Fix few implicit references warnings.
[claws.git] / src / plugins / libravatar / libravatar_prefs.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail Team
4  * Copyright (C) 2014 Ricardo Mones
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef __LIBRAVATAR_PREFS_H
21 #define __LIBRAVATAR_PREFS_H
22
23 #include <glib.h>
24
25 typedef struct _LibravatarPrefs LibravatarPrefs;
26
27 /* http://wiki.libravatar.org/api/ */
28 enum
29 {
30         DEF_MODE_NONE           = 0,
31         DEF_MODE_URL            = 1,
32         DEF_MODE_404            = 10, /* not used, only useful in web pages */
33         DEF_MODE_MM             = 11,
34         DEF_MODE_IDENTICON      = 12,
35         DEF_MODE_MONSTERID      = 13,
36         DEF_MODE_WAVATAR        = 14,
37         DEF_MODE_RETRO          = 15,
38 };
39
40 struct _LibravatarPrefs
41 {
42         gchar           *base_url; /* hidden pref */
43         guint           cache_interval;
44         gboolean        cache_icons;
45         guint           default_mode;
46         gchar           *default_mode_url;
47         gboolean        allow_redirects;
48 };
49
50 extern LibravatarPrefs libravatarprefs;
51 extern GHashTable *libravatarmisses;
52
53 void libravatar_prefs_init(void);
54 void libravatar_prefs_done(void);
55
56 #endif
57