Fix error creation and warning
[claws.git] / src / plugins / libravatar / libravatar_cache.h
bloba3d57447a0b41f42dd334bfb68742be174ada4b9
1 /*
2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 2014-2015 Ricardo Mones and the Claws Mail Team
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef __LIBRAVATAR_CACHE_H
20 #define __LIBRAVATAR_CACHE_H
22 #include <glib.h>
24 #define LIBRAVATAR_CACHE_DIR "avatarcache"
26 typedef struct _AvatarCacheStats AvatarCacheStats;
27 typedef struct _AvatarCleanupResult AvatarCleanupResult;
29 gchar *libravatar_cache_init (const char *dirs[],
30 gint start,
31 gint end);
32 AvatarCacheStats *libravatar_cache_stats ();
33 AvatarCleanupResult *libravatar_cache_clean ();
35 struct _AvatarCacheStats
37 gint bytes;
38 gint files;
39 gint dirs;
40 gint others;
41 gint errors;
44 struct _AvatarCleanupResult
46 guint removed;
47 guint e_stat;
48 guint e_unlink;
51 #endif