diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-24 16:48:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-25 21:58:37 +0100 |
commit | 636e813dc98ea40c58c6c85bc5e7e3c9f0904ea2 (patch) | |
tree | 4ea8f8a918f6efc364944503c25e909c86b8a791 /src/resolve/resolved-dns-server.h | |
parent | e3528a5c46c815974d4d17ea9964278f7ee9caae (diff) |
resolved: unify code for parsing dns server information
Let's use the same parser when parsing dns server information from
/etc/resolv.conf and our native configuration file.
Also, move all code that manages lists of dns servers to a single place.
resolved-dns-server.c
Diffstat (limited to 'src/resolve/resolved-dns-server.h')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index 10111fd6bd..51cae62e42 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -68,6 +68,10 @@ DnsServer* dns_server_unref(DnsServer *s); void dns_server_packet_received(DnsServer *s, usec_t rtt); void dns_server_packet_lost(DnsServer *s, usec_t usec); +void manager_flush_dns_servers(Manager *m, DnsServerType t); +void manager_flush_marked_dns_servers(Manager *m, DnsServerType type); +void manager_mark_dns_servers(Manager *m, DnsServerType type); + DEFINE_TRIVIAL_CLEANUP_FUNC(DnsServer*, dns_server_unref); extern const struct hash_ops dns_server_hash_ops; |