X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fcache.h;h=e4bdbc4f83f2b506e8d9b37ed10361e0ec1f756a;hb=38b45921cd1d33119f1c06979a57bcfe982e22da;hp=4415c3c72627e4a530896803c90a84c5eea689ab;hpb=f5a4db2039532ef93fbb3d98fa048be9d74a83fe;p=catta diff --git a/avahi-core/cache.h b/avahi-core/cache.h index 4415c3c..e4bdbc4 100644 --- a/avahi-core/cache.h +++ b/avahi-core/cache.h @@ -46,6 +46,7 @@ struct AvahiCacheEntry { AvahiRecord *record; GTimeVal timestamp; GTimeVal expiry; + gboolean cache_flush; AvahiAddress origin; @@ -64,6 +65,8 @@ struct AvahiCache { GHashTable *hash_table; AVAHI_LLIST_HEAD(AvahiCacheEntry, entries); + + guint n_entries; }; AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *interface); @@ -72,7 +75,7 @@ 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, gboolean unique, const AvahiAddress *a); +void avahi_cache_update(AvahiCache *c, AvahiRecord *r, gboolean cache_flush, const AvahiAddress *a); void avahi_cache_dump(AvahiCache *c, FILE *f);