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);
42 flxInterface *interface;
44 GHashTable *hash_table;
47 flxCache *flx_cache_new(flxServer *server, flxInterface *interface);
48 void flx_cache_free(flxCache *c);
50 flxCacheEntry *flx_cache_lookup_key(flxCache *c, flxKey *k);
51 flxCacheEntry *flx_cache_lookup_record(flxCache *c, flxRecord *r);
53 flxCacheEntry *flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
55 void flx_cache_drop_key(flxCache *c, flxKey *k);
56 void flx_cache_drop_record(flxCache *c, flxRecord *r);
58 void flx_cache_dump(flxCache *c, FILE *f);