7 typedef struct _flxCache flxCache;
21 typedef struct flxCacheEntry flxCacheEntry;
23 struct flxCacheEntry {
30 flxCacheEntryState state;
32 FLX_LLIST_FIELDS(flxCacheEntry, by_name);
34 flxPrioQueueNode *node;
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 flxCacheEntry *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);