diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6-dns/hosts.h | 6 |
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) |