aboutsummaryrefslogtreecommitdiffstats
path: root/pacredir.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-05-02 21:27:30 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-05-02 21:27:30 +0200
commit2b1c967df2e4c7d72571b3f3eda5a7306e2d3913 (patch)
tree7559d30b008b6259550c76b2ec9fed038968d65b /pacredir.h
parent3efdfbdf18f7fe2374481303d2bc64ec95f286cf (diff)
downloadpacredir-2b1c967df2e4c7d72571b3f3eda5a7306e2d3913.tar.gz
pacredir-2b1c967df2e4c7d72571b3f3eda5a7306e2d3913.tar.zst
(re-)add support for IPv6
Diffstat (limited to 'pacredir.h')
-rw-r--r--pacredir.h8
1 files changed, 5 insertions, 3 deletions
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,