From 2b1c967df2e4c7d72571b3f3eda5a7306e2d3913 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 2 May 2017 21:27:30 +0200 Subject: (re-)add support for IPv6 --- pacredir.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pacredir.h') diff --git a/pacredir.h b/pacredir.h index 2cd8cca..11f890b 100644 --- a/pacredir.h +++ b/pacredir.h @@ -61,6 +61,8 @@ struct services { struct hosts { /* host name */ char * host; + /* protocol (AVAHI_PROTO_INET, AVAHI_PROTO_INET6 or AVAHI_PROTO_UNSPEC) */ + AvahiProtocol proto; /* resolved address */ char address[AVAHI_ADDRESS_STR_MAX]; /* online status and bad time for services */ @@ -99,12 +101,12 @@ int write_log(FILE *stream, const char *format, ...); /* get_fqdn */ char * get_fqdn(const char * hostname, const char * domainname); /* get_url */ -char * get_url(const char * hostname, const char * address, const uint16_t port, const char * uri); +char * get_url(const char * hostname, AvahiProtocol proto, const char * address, const uint16_t port, const char * uri); /* add_host */ -int add_host(const char * host, const char * address, const uint16_t port, const char * type); +int add_host(const char * host, AvahiProtocol proto, const char * address, const uint16_t port, const char * type); /* remove_host */ -int remove_host(const char * host, const char * type); +int remove_host(const char * host, AvahiProtocol proto, const char * type); /* resolve_callback */ static void resolve_callback(AvahiServiceResolver *r, -- cgit v1.2.3-70-g09d2