1 --- /usr/tmp/clean/avahi-0.6.10/avahi-core/internal.h 2006-02-20 16:20:39.000000000 +0000 2 +++ avahi-0.6.10/avahi-core/internal.h 2006-05-25 16:55:38.318495000 +0100 3 @@ -24,6 +24,10 @@ 4 5 /** A locally registered DNS resource record */ 6 typedef struct AvahiEntry AvahiEntry; 7 +#ifdef HAVE_BONJOUR 8 +typedef struct AvahiService AvahiService; 9 +#include <dns_sd.h> 10 +#endif 11 12 #include <avahi-common/llist.h> 13 #include <avahi-common/watch.h> 14 @@ -73,6 +77,10 @@ 15 AvahiIfIndex interface; 16 AvahiProtocol protocol; 17 18 +#ifdef HAVE_BONJOUR 19 + DNSRecordRef recordref; 20 +#endif 21 + 22 AVAHI_LLIST_FIELDS(AvahiEntry, entries); 23 AVAHI_LLIST_FIELDS(AvahiEntry, by_key); 24 AVAHI_LLIST_FIELDS(AvahiEntry, by_group); 25 @@ -98,6 +106,11 @@ 26 27 AVAHI_LLIST_FIELDS(AvahiSEntryGroup, groups); 28 AVAHI_LLIST_HEAD(AvahiEntry, entries); 29 +#ifdef HAVE_BONJOUR 30 + AVAHI_LLIST_HEAD(AvahiService, services); 31 + 32 + DNSServiceRef record_connection; 33 +#endif 34 }; 35 36 struct AvahiServer { 37 @@ -107,6 +120,10 @@ 38 AvahiServerConfig config; 39 40 AVAHI_LLIST_HEAD(AvahiEntry, entries); 41 +#ifdef HAVE_BONJOUR 42 + AVAHI_LLIST_HEAD(AvahiService, services); 43 +#endif 44 + 45 AvahiHashmap *entries_by_key; 46 47 AVAHI_LLIST_HEAD(AvahiSEntryGroup, groups); 48 @@ -122,6 +139,10 @@ 49 AVAHI_LLIST_HEAD(AvahiSDNSServerBrowser, dns_server_browsers); 50 51 int need_entry_cleanup, need_group_cleanup, need_browser_cleanup; 52 +#ifdef HAVE_BONJOUR 53 + int need_service_cleanup; 54 + AvahiTimeEvent *cleanup_time_event; 55 +#endif 56 57 AvahiTimeEventQueue *time_event_queue; 58 59