Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mdns_responder.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13
14#ifndef ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_
15#define ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_
16
17#include <stddef.h>
18#include <errno.h>
19#include <zephyr/net/dns_sd.h>
20#include <zephyr/net/net_if.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
38int mdns_responder_set_ext_records(const struct dns_sd_rec *records, size_t count);
39
40#if defined(CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL) || defined(__DOXYGEN__)
57
74
75#else /* CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL */
76
77static inline int mdns_responder_enable_iface(struct net_if *iface)
78{
79 ARG_UNUSED(iface);
80
81 return -ENOTSUP;
82}
83
84static inline int mdns_responder_disable_iface(struct net_if *iface)
85{
86 ARG_UNUSED(iface);
87
88 return -ENOTSUP;
89}
90
91#endif /* CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL || __DOXYGEN__ */
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_ */
DNS Service Discovery.
System error numbers.
#define ENOTSUP
Unsupported value.
Definition errno.h:115
int mdns_responder_disable_iface(struct net_if *iface)
Disable the mDNS responder on a specific network interface at runtime.
int mdns_responder_set_ext_records(const struct dns_sd_rec *records, size_t count)
Register continuous memory of dns_sd_rec records.
int mdns_responder_enable_iface(struct net_if *iface)
Enable the mDNS responder on a specific network interface at runtime.
Public API for network interface.
DNS Service Discovery record.
Definition dns_sd.h:215
Network Interface structure.
Definition net_if.h:764