7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
13 #ifndef CACHE_LOADER_H
14 #define CACHE_LOADER_H
18 #include "image-load.h"
21 typedef struct _CacheLoader CacheLoader;
23 typedef void (* CacheLoaderDoneFunc)(CacheLoader *cl, gint error, gpointer data);
27 CACHE_LOADER_NONE = 0,
28 CACHE_LOADER_DIMENSIONS = 1 << 0,
29 CACHE_LOADER_DATE = 1 << 1,
30 CACHE_LOADER_MD5SUM = 1 << 2,
31 CACHE_LOADER_SIMILARITY = 1 << 3
38 CacheDataType todo_mask;
39 CacheDataType done_mask;
41 CacheLoaderDoneFunc done_func;
51 CacheLoader *cache_loader_new(const gchar *path, CacheDataType load_mask,
52 CacheLoaderDoneFunc done_func, gpointer done_data);
54 void cache_loader_free(CacheLoader *cl);