Navit SVN

/work/compile/navit/src/navit/cache.h

00001 struct cache_entry;
00002 struct cache;
00003 /* prototypes */
00004 struct cache *cache_new(int id_size, int size);
00005 void *cache_entry_new(struct cache *cache, void *id, int size);
00006 void cache_entry_destroy(struct cache *cache, void *data);
00007 void *cache_lookup(struct cache *cache, void *id);
00008 void cache_insert(struct cache *cache, void *data);
00009 void *cache_insert_new(struct cache *cache, void *id, int size);
00010 void cache_flush(struct cache *cache, void *id);
00011 void cache_dump(struct cache *cache);
00012 void cache_flush_data(struct cache *cache, void *data);
00013 /* end of prototypes */