diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-24 21:27:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-25 21:58:38 +0100 |
commit | 4b95f1798f22c1bb75295f448188560cb6ec9ece (patch) | |
tree | a558209fdb4450717d3d28c4987140ed4f5b33b8 /src/resolve/resolved-dns-server.h | |
parent | a51c10485af349eb15faa4d1a63b9818bcf3e589 (diff) |
resolved: unify DnsServer handling code between Link and Manager
This copies concepts we introduced for the DnsSearchDomain stuff, and
reworks the operations on lists of dns servers to be reusable and
generic for use both with the Link and the Manager object.
Diffstat (limited to 'src/resolve/resolved-dns-server.h')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index 0077456cbc..3a78d4a3b5 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -72,14 +72,15 @@ void dns_server_move_back_and_unmark(DnsServer *s); void dns_server_packet_received(DnsServer *s, usec_t rtt); void dns_server_packet_lost(DnsServer *s, usec_t usec); -DnsServer *manager_get_first_dns_server(Manager *m, DnsServerType t); +DnsServer *dns_server_find(DnsServer *first, int family, const union in_addr_union *in_addr); + +void dns_server_unlink_all(DnsServer *first); +void dns_server_unlink_marked(DnsServer *first); +void dns_server_mark_all(DnsServer *first); -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); +DnsServer *manager_get_first_dns_server(Manager *m, DnsServerType t); DnsServer *manager_set_dns_server(Manager *m, DnsServer *s); -DnsServer *manager_find_dns_server(Manager *m, DnsServerType t, int family, const union in_addr_union *in_addr); DnsServer *manager_get_dns_server(Manager *m); void manager_next_dns_server(Manager *m); |