]>
Commit | Line | Data |
---|---|---|
54bb2c0e YW |
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | #pragma once | |
3 | ||
4 | #include "conf-parser.h" | |
5 | #include "macro.h" | |
7a169cb4 YW |
6 | #include "networkd-util.h" |
7 | ||
8 | typedef struct Link Link; | |
54bb2c0e YW |
9 | |
10 | typedef enum UseDomains { | |
11 | USE_DOMAINS_NO, | |
12 | USE_DOMAINS_YES, | |
13 | USE_DOMAINS_ROUTE, | |
14 | _USE_DOMAINS_MAX, | |
15 | _USE_DOMAINS_INVALID = -EINVAL, | |
16 | } UseDomains; | |
17 | ||
7a169cb4 | 18 | UseDomains link_get_use_domains(Link *link, NetworkConfigSource proto); |
9646ffe2 | 19 | bool link_get_use_dns(Link *link, NetworkConfigSource proto); |
7a169cb4 | 20 | |
54bb2c0e YW |
21 | const char* use_domains_to_string(UseDomains p) _const_; |
22 | UseDomains use_domains_from_string(const char *s) _pure_; | |
23 | ||
24 | CONFIG_PARSER_PROTOTYPE(config_parse_domains); | |
25 | CONFIG_PARSER_PROTOTYPE(config_parse_dns); | |
26 | CONFIG_PARSER_PROTOTYPE(config_parse_dnssec_negative_trust_anchors); | |
27 | CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_use_dns); | |
54bb2c0e | 28 | CONFIG_PARSER_PROTOTYPE(config_parse_use_domains); |