]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-dns.h
libpasswdqc: add missing `#include "dlfcn-util.h"`
[thirdparty/systemd.git] / src / network / networkd-dns.h
CommitLineData
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
8typedef struct Link Link;
54bb2c0e
YW
9
10typedef 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 18UseDomains link_get_use_domains(Link *link, NetworkConfigSource proto);
9646ffe2 19bool link_get_use_dns(Link *link, NetworkConfigSource proto);
7a169cb4 20
54bb2c0e
YW
21const char* use_domains_to_string(UseDomains p) _const_;
22UseDomains use_domains_from_string(const char *s) _pure_;
23
24CONFIG_PARSER_PROTOTYPE(config_parse_domains);
25CONFIG_PARSER_PROTOTYPE(config_parse_dns);
26CONFIG_PARSER_PROTOTYPE(config_parse_dnssec_negative_trust_anchors);
27CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_use_dns);
54bb2c0e 28CONFIG_PARSER_PROTOTYPE(config_parse_use_domains);