X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fcache.h;h=edf9fa530be40d5c5708c620eb8cb5c5aeaed2da;hb=37b2be93e63ceff95698f24cd91cb11774eb621c;hp=bd1cd6c5258ac5dcba0e690a71ec8ca2c5cd0112;hpb=6d236291b17f2d02e15d4c6f1c87bc7b3fc4e982;p=catta diff --git a/avahi-core/cache.h b/avahi-core/cache.h index bd1cd6c..edf9fa5 100644 --- a/avahi-core/cache.h +++ b/avahi-core/cache.h @@ -26,7 +26,7 @@ typedef struct AvahiCache AvahiCache; #include #include "prioq.h" -#include "server.h" +#include "internal.h" #include "timeeventq.h" #include "hashmap.h" @@ -72,14 +72,14 @@ struct AvahiCache { AVAHI_LLIST_HEAD(AvahiCacheEntry, entries); unsigned n_entries; + + int last_rand; + time_t last_rand_timestamp; }; AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *interface); void avahi_cache_free(AvahiCache *c); -AvahiCacheEntry *avahi_cache_lookup_key(AvahiCache *c, AvahiKey *k); -AvahiCacheEntry *avahi_cache_lookup_record(AvahiCache *c, AvahiRecord *r); - void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const AvahiAddress *a); int avahi_cache_dump(AvahiCache *c, AvahiDumpCallback callback, void* userdata);