Mercurial > geeqie.yaz
view src/filecache.h @ 846:8911a4f0e56c
simple cache for loaded pixbufs
author | nadvornik |
---|---|
date | Sat, 21 Jun 2008 16:00:13 +0000 |
parents | efed9a1520d6 |
children | 77fc0ea3457d |
line wrap: on
line source
/* * Geeqie * Copyright (C) 2008 The Geeqie Team * * Author: Vladimir Nadvornik * * This software is released under the GNU General Public License (GNU GPL). * Please read the included file COPYING for more information. * This software comes with no warranty of any kind, use at your own risk! */ #ifndef FILECACHE_H #define FILECACHE_H #include "main.h" #include "filedata.h" typedef struct _FileCacheData FileCacheData; typedef void (*FileCacheReleaseFunc)(FileData *fd); FileCacheData *file_cache_new(FileCacheReleaseFunc release, gulong max_size); gint file_cache_get(FileCacheData *fc, FileData *fd); void file_cache_put(FileCacheData *fc, FileData *fd, gulong size); void file_cache_dump(FileCacheData *fc); #endif