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