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
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.
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.
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/>.
20 #ifndef __LIBRAVATAR_PREFS_H
21 #define __LIBRAVATAR_PREFS_H
25 typedef struct _LibravatarPrefs LibravatarPrefs;
27 /* http://wiki.libravatar.org/api/ */
32 DEF_MODE_404 = 10, /* not used, only useful in web pages */
34 DEF_MODE_IDENTICON = 12,
35 DEF_MODE_MONSTERID = 13,
36 DEF_MODE_WAVATAR = 14,
40 struct _LibravatarPrefs
42 gchar *base_url; /* hidden pref */
46 gchar *default_mode_url;
47 gboolean allow_redirects;
48 #if (defined USE_GNUTLS && GLIB_CHECK_VERSION(2,22,0))
49 gboolean allow_federated;
54 extern LibravatarPrefs libravatarprefs;
55 extern GHashTable *libravatarmisses;
57 void libravatar_prefs_init(void);
58 void libravatar_prefs_done(void);