blob: b3f5adb09ad8ea5804ade15ab1ea92b702ce4a2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct cache_entry;
struct cache;
/* prototypes */
struct cache *cache_new(int id_size, int size);
void cache_resize(struct cache *cache, int size);
void *cache_entry_new(struct cache *cache, void *id, int size);
void cache_entry_destroy(struct cache *cache, void *data);
void *cache_lookup(struct cache *cache, void *id);
void cache_insert(struct cache *cache, void *data);
void *cache_insert_new(struct cache *cache, void *id, int size);
void cache_flush(struct cache *cache, void *id);
void cache_dump(struct cache *cache);
void cache_flush_data(struct cache *cache, void *data);
/* end of prototypes */
|