From 8cf671e973a4ea2ef7c9ca1321531a7ceeaa5073 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 11 Jul 2023 12:26:21 +0000 Subject: Good version of hosts.h Signed-off-by: Laurent Bercot --- src/include/s6-dns/hosts.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/s6-dns/hosts.h b/src/include/s6-dns/hosts.h index 7c11af0..0f85d0b 100644 --- a/src/include/s6-dns/hosts.h +++ b/src/include/s6-dns/hosts.h @@ -13,8 +13,10 @@ extern cdb s6dns_hosts_here ; extern int s6dns_hosts_compile (int, int) ; -extern int s6dns_hosts_init (cdb *) ; -#define s6dns_hosts_free(c) cdb_free(c) +extern int s6dns_hosts_init_r (cdb *, char const *, char const *, char const *) ; +#define s6dns_hosts_init() s6dns_hosts_init_r(&s6dns_hosts_here, "/etc/hosts", "/etc/hosts.cdb", "/tmp/hosts.cdb") +#define s6dns_hosts_free_r(c) cdb_free(c) +#define s6dns_hosts_free() s6dns_hosts_free_r(&s6dns_hosts_here) -- cgit v1.2.3