]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
4e945a6f LP |
2 | #pragma once |
3 | ||
4 | /*** | |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2014 Tom Gundersen <teg@jklm.no> | |
8 | ||
9 | systemd is free software; you can redistribute it and/or modify it | |
10 | under the terms of the GNU Lesser General Public License as published by | |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | Lesser General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU Lesser General Public License | |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
21 | ***/ | |
22 | ||
1ae43295 DM |
23 | typedef enum DnsStubListenerMode DnsStubListenerMode; |
24 | ||
25 | enum DnsStubListenerMode { | |
26 | DNS_STUB_LISTENER_NO, | |
27 | DNS_STUB_LISTENER_UDP, | |
28 | DNS_STUB_LISTENER_TCP, | |
29 | DNS_STUB_LISTENER_YES, | |
30 | _DNS_STUB_LISTENER_MODE_MAX, | |
31 | _DNS_STUB_LISTENER_MODE_INVALID = -1 | |
32 | }; | |
33 | ||
39d8db04 | 34 | #include "resolved-manager.h" |
07f264e4 | 35 | #include "resolved-dns-server.h" |
4e945a6f | 36 | |
4e945a6f LP |
37 | int manager_parse_config_file(Manager *m); |
38 | ||
a51c1048 LP |
39 | int manager_add_search_domain_by_string(Manager *m, const char *domain); |
40 | int manager_parse_search_domains_and_warn(Manager *m, const char *string); | |
41 | ||
636e813d | 42 | int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word); |
a51c1048 | 43 | int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string); |
636e813d | 44 | |
c9f7b4d3 | 45 | const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length); |
4e945a6f | 46 | |
6501dd31 DR |
47 | const struct ConfigPerfItem* resolved_dnssd_gperf_lookup(const char *key, GPERF_LEN_TYPE length); |
48 | ||
636e813d | 49 | int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |
a51c1048 | 50 | int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |
1ae43295 | 51 | int config_parse_dns_stub_listener_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |
6501dd31 DR |
52 | int config_parse_dnssd_service_name(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |
53 | int config_parse_dnssd_service_type(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); | |
54 | int config_parse_dnssd_txt(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); | |
1ae43295 DM |
55 | |
56 | const char* dns_stub_listener_mode_to_string(DnsStubListenerMode p) _const_; | |
57 | DnsStubListenerMode dns_stub_listener_mode_from_string(const char *s) _pure_; |