rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / avahi / patches / 04-internal.patch
blobbdb9817f898098ca98e35b7fbf2446034d32b188
1 --- /usr/tmp/clean/avahi-0.6.28/avahi-core/internal.h 2010-08-26 01:51:38.988153000 +0100
2 +++ avahi-0.6.28/avahi-core/internal.h 2011-01-20 12:06:07.798532060 +0000
3 @@ -22,6 +22,10 @@
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
12 #include <avahi-common/llist.h>
13 #include <avahi-common/watch.h>
14 @@ -72,6 +76,10 @@
15 AvahiIfIndex interface;
16 AvahiProtocol protocol;
18 +#ifdef HAVE_BONJOUR
19 + DNSRecordRef recordref;
20 +#endif
22 AVAHI_LLIST_FIELDS(AvahiEntry, entries);
23 AVAHI_LLIST_FIELDS(AvahiEntry, by_key);
24 AVAHI_LLIST_FIELDS(AvahiEntry, by_group);
25 @@ -97,6 +105,11 @@
27 AVAHI_LLIST_FIELDS(AvahiSEntryGroup, groups);
28 AVAHI_LLIST_HEAD(AvahiEntry, entries);
29 +#ifdef HAVE_BONJOUR
30 + AVAHI_LLIST_HEAD(AvahiService, services);
32 + DNSServiceRef record_connection;
33 +#endif
36 struct AvahiServer {
37 @@ -106,6 +119,10 @@
38 AvahiServerConfig config;
40 AVAHI_LLIST_HEAD(AvahiEntry, entries);
41 +#ifdef HAVE_BONJOUR
42 + AVAHI_LLIST_HEAD(AvahiService, services);
43 +#endif
45 AvahiHashmap *entries_by_key;
47 AVAHI_LLIST_HEAD(AvahiSEntryGroup, groups);
48 @@ -121,6 +138,9 @@
49 AVAHI_LLIST_HEAD(AvahiSDNSServerBrowser, dns_server_browsers);
51 int need_entry_cleanup, need_group_cleanup, need_browser_cleanup;
52 +#ifdef HAVE_BONJOUR
53 + int need_service_cleanup;
54 +#endif
56 /* Used for scheduling RR cleanup */
57 AvahiTimeEvent *cleanup_time_event;