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;
40 flxInterface *interface;
42 GHashTable *hash_table;
45 flxCache *flx_cache_new(flxServer *server, flxInterface *interface);
46 void flx_cache_free(flxCache *c);
48 flxCacheEntry *flx_cache_lookup_key(flxCache *c, flxKey *k);
49 flxCacheEntry *flx_cache_lookup_record(flxCache *c, flxRecord *r);
51 flxCacheEntry *flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
53 void flx_cache_drop_key(flxCache *c, flxKey *k);
54 void flx_cache_drop_record(flxCache *c, flxRecord *r);