diff options
author | Christian Hesse <mail@eworm.de> | 2017-05-02 21:27:30 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-05-02 21:27:30 +0200 |
commit | 2b1c967df2e4c7d72571b3f3eda5a7306e2d3913 (patch) | |
tree | 7559d30b008b6259550c76b2ec9fed038968d65b /pacredir.h | |
parent | 3efdfbdf18f7fe2374481303d2bc64ec95f286cf (diff) | |
download | pacredir-2b1c967df2e4c7d72571b3f3eda5a7306e2d3913.tar.gz pacredir-2b1c967df2e4c7d72571b3f3eda5a7306e2d3913.tar.zst |
(re-)add support for IPv6
Diffstat (limited to 'pacredir.h')
-rw-r--r-- | pacredir.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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, |