7 typedef struct _flxCache flxCache;
12 #include "timeeventq.h"
22 typedef struct flxCacheEntry flxCacheEntry;
24 struct flxCacheEntry {
32 flxCacheEntryState state;
33 flxTimeEvent *time_event;
35 FLX_LLIST_FIELDS(flxCacheEntry, by_name);
41 flxInterface *interface;
43 GHashTable *hash_table;
46 flxCache *flx_cache_new(flxServer *server, flxInterface *interface);
47 void flx_cache_free(flxCache *c);
49 flxCacheEntry *flx_cache_lookup_key(flxCache *c, flxKey *k);
50 flxCacheEntry *flx_cache_lookup_record(flxCache *c, flxRecord *r);
52 void flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
54 void flx_cache_drop_key(flxCache *c, flxKey *k);
55 void flx_cache_drop_record(flxCache *c, flxRecord *r);
57 void flx_cache_dump(flxCache *c, FILE *f);