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;
45 GHashTable *hash_table;
48 flxCache *flx_cache_new(flxServer *server, flxInterface *interface, guchar protocol);
49 void flx_cache_free(flxCache *c);
51 flxCacheEntry *flx_cache_lookup_key(flxCache *c, flxKey *k);
52 flxCacheEntry *flx_cache_lookup_record(flxCache *c, flxRecord *r);
54 flxCacheEntry *flx_cache_update(flxCache *c, flxRecord *r, gboolean unique, const flxAddress *a);
56 void flx_cache_drop_key(flxCache *c, flxKey *k);
57 void flx_cache_drop_record(flxCache *c, flxRecord *r);
59 void flx_cache_dump(flxCache *c, FILE *f);