Libravatar: more compact prefs, add hint to entry
[claws.git] / src / plugins / libravatar / libravatar.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_H
21 #define __LIBRAVATAR_H
22
23 #include <glib.h>
24
25 #include "version.h"
26 #include "claws.h"
27 #include "plugin.h"
28 #include "utils.h"
29 #include "hooks.h"
30 #include "avatars.h"
31
32 #define AVATAR_LIBRAVATAR 3
33 #define AVATAR_SIZE 48
34 #define LIBRAVATAR_CACHE_DIR "avatarcache"
35 /* https://github.com/mathiasbynens/small/pull/19 */
36 #define MIN_PNG_SIZE 67L
37 #define MAX_URL_LENGTH 1024
38
39 gint            plugin_init               (gchar **error);
40 gboolean        plugin_done               (void);
41 const gchar *   plugin_name               (void);
42 const gchar *   plugin_desc               (void);
43 const gchar *   plugin_type               (void);
44 const gchar *   plugin_licence            (void);
45 const gchar *   plugin_version            (void);
46 struct PluginFeature *plugin_provides     (void);
47
48 #endif
49