]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-conf.h
resolved: don't check conflicts for DNS-SD enumeration RRs
[thirdparty/systemd.git] / src / resolve / resolved-conf.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
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
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
34 #include "resolved-manager.h"
35 #include "resolved-dns-server.h"
36
37 int manager_parse_config_file(Manager *m);
38
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
42 int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
43 int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
44
45 const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
46
47 const struct ConfigPerfItem* resolved_dnssd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
48
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);
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);
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);
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);
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_;