summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-11 12:26:21 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-11 12:26:21 +0000
commit8cf671e973a4ea2ef7c9ca1321531a7ceeaa5073 (patch)
treea84faead6505a91ce91f2a86f07768e3aa318dda /src/include
parentbce22be61a55a29084c8c0416be942622d2d8f87 (diff)
downloads6-dns-8cf671e973a4ea2ef7c9ca1321531a7ceeaa5073.tar.xz
Good version of hosts.h
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-dns/hosts.h6
1 files changed, 4 insertions, 2 deletions
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)