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 4 * 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. 9 * 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. 14 * 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/>. 17 */ 18 19 #ifndef __LIBRAVATAR_CACHE_H 20 #define __LIBRAVATAR_CACHE_H 21 22 #include <glib.h> 23 24 #define LIBRAVATAR_CACHE_DIR "avatarcache" 25 26 typedef struct _AvatarCacheStats AvatarCacheStats; 27 typedef struct _AvatarCleanupResult AvatarCleanupResult; 28 29 gchar *libravatar_cache_init (const char *dirs[], 30 gint start, 31 gint end); 32 AvatarCacheStats *libravatar_cache_stats (); 33 AvatarCleanupResult *libravatar_cache_clean (); 34 35 struct _AvatarCacheStats 36 { 37 gint bytes; 38 gint files; 39 gint dirs; 40 gint others; 41 gint errors; 42 }; 43 44 struct _AvatarCleanupResult 45 { 46 guint removed; 47 guint e_stat; 48 guint e_unlink; 49 }; 50 51 #endif 52