]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-etc-hosts.h
repart: remove duplicate word in --help
[thirdparty/systemd.git] / src / resolve / resolved-etc-hosts.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "resolved-manager.h"
5 #include "resolved-dns-question.h"
6 #include "resolved-dns-answer.h"
7
8 typedef struct EtcHostsItemByAddress {
9 struct in_addr_data address;
10 Set *names;
11 const char *canonical_name;
12 } EtcHostsItemByAddress;
13
14 typedef struct EtcHostsItemByName {
15 char *name;
16 Set *addresses;
17 } EtcHostsItemByName;
18
19 int etc_hosts_parse(EtcHosts *hosts, FILE *f);
20 void etc_hosts_clear(EtcHosts *hosts);
21
22 void manager_etc_hosts_flush(Manager *m);
23 int manager_etc_hosts_lookup(Manager *m, DnsQuestion* q, DnsAnswer **answer);