Back to index

avfs  1.0.1
cache.h
Go to the documentation of this file.
00001 /*
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 1998-2001  Miklos Szeredi <miklos@szeredi.hu>
00004     Copyright (C) 2006       Ralf Hoffmann (ralf@boomerangsworld.de)
00005 
00006     This program can be distributed under the terms of the GNU GPL.
00007     See the file COPYING.
00008 */
00009 
00010 #include "avfs.h"
00011 
00012 struct cacheobj;
00013 
00014 void av_cache_checkspace();
00015 void av_cache_diskfull();
00016 
00023 struct cacheobj *av_cacheobj_new(void *obj, const char *name);
00024 void *av_cacheobj_get(struct cacheobj *cobj);
00025 void av_cacheobj_setsize(struct cacheobj *cobj, avoff_t diskusage);
00026 
00032 int av_cache2_set(void *obj, const char *name);
00033 void *av_cache2_get(const char *name);
00034 void av_cache2_setsize(const char *name, avoff_t diskusage);