comparison src/filecache.h @ 844:efed9a1520d6

implemented generic FileData cache use it for caching decoded exif data
author nadvornik
date Wed, 18 Jun 2008 22:26:52 +0000
parents
children 8911a4f0e56c
comparison
equal deleted inserted replaced
843:add46f9c895c 844:efed9a1520d6
1 /*
2 * Geeqie
3 * Copyright (C) 2008 The Geeqie Team
4 *
5 * Author: Vladimir Nadvornik
6 *
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!
10 */
11
12 #ifndef FILECACHE_H
13 #define FILECACHE_H
14
15 #include "main.h"
16 #include "filedata.h"
17
18 typedef struct _FileCacheData FileCacheData;
19 typedef void (*FileCacheReleaseFunc)(FileData *fd);
20
21
22 FileCacheData *file_cache_new(FileCacheReleaseFunc release, gulong max_size);
23 gint file_cache_get(FileCacheData *fc, FileData *fd);
24 void file_cache_put(FileCacheData *fc, FileData *fd, gulong size);
25
26 #endif