From a834db5dc933a4b48c8323ae3e490448a86b448f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 4 Jul 2018 13:59:24 +0200 Subject: use private bind mounts for pacserve, remove pacdbserve We want just one service to serve database files and package archives. Private bind mounts make both available to pacserve. This alse removes some complexity in pacredir. --- pacredir.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pacredir.h') diff --git a/pacredir.h b/pacredir.h index fa26dbd..bddab74 100644 --- a/pacredir.h +++ b/pacredir.h @@ -66,7 +66,6 @@ struct hosts { char address[AVAHI_ADDRESS_STR_MAX]; /* online status and bad time for services */ struct services pacserve; - struct services pacdbserve; /* pointer to next struct element */ struct hosts * next; }; @@ -100,7 +99,7 @@ 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, AvahiProtocol proto, 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 uint8_t dbfile, const char * uri); /* add_host */ int add_host(const char * host, AvahiProtocol proto, const char * address, const uint16_t port, const char * type); -- cgit v1.2.3-54-g00ecf