summaryrefslogtreecommitdiff
path: root/navit/cache.h
blob: cdeea02e54df15aa05f18720c80cc2dacf08cb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct cache_entry;
struct cache;
/* prototypes */
struct cache *cache_new(int id_size, 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 */