summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-etc-hosts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve/resolved-etc-hosts.h')
-rw-r--r--src/resolve/resolved-etc-hosts.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/resolve/resolved-etc-hosts.h b/src/resolve/resolved-etc-hosts.h
index b8e04c393b..caf32a53dd 100644
--- a/src/resolve/resolved-etc-hosts.h
+++ b/src/resolve/resolved-etc-hosts.h
@@ -5,6 +5,21 @@
#include "resolved-dns-question.h"
#include "resolved-dns-answer.h"
+typedef struct EtcHostsItem {
+ struct in_addr_data address;
+
+ char **names;
+} EtcHostsItem;
+
+typedef struct EtcHostsItemByName {
+ char *name;
+
+ struct in_addr_data **addresses;
+ size_t n_addresses, n_allocated;
+} EtcHostsItemByName;
+
+int etc_hosts_parse(EtcHosts *hosts, FILE *f);
+void etc_hosts_free(EtcHosts *hosts);
+
void manager_etc_hosts_flush(Manager *m);
-int manager_etc_hosts_read(Manager *m);
int manager_etc_hosts_lookup(Manager *m, DnsQuestion* q, DnsAnswer **answer);