summaryrefslogtreecommitdiffstats
path: root/pacredir.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-05-02 22:00:24 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-05-02 22:00:24 +0200
commit1aae1eed735cfe6d9e876860932c551ad4b82305 (patch)
tree48541519b215ab7963de0b99cabfddb0874a33c4 /pacredir.h
parent3efdfbdf18f7fe2374481303d2bc64ec95f286cf (diff)
parenta7cf22d3ec6bc1e6cc34878dbc211b726d143285 (diff)
downloadpacredir-1aae1eed735cfe6d9e876860932c551ad4b82305.tar.gz
pacredir-1aae1eed735cfe6d9e876860932c551ad4b82305.tar.zst
Merge branch '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,