Zephyr Project API 4.5.0-rc2
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
41int mdns_responder_set_ext_records(const struct dns_sd_rec *records, size_t count);
42
43#if defined(CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL) || defined(__DOXYGEN__)
60
77
78#else /* CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL */
79
80static inline int mdns_responder_enable_iface(struct net_if *iface)
81{
82 ARG_UNUSED(iface);
83
84 return -ENOTSUP;
85}
86
87static inline int mdns_responder_disable_iface(struct net_if *iface)
88{
89 ARG_UNUSED(iface);
90
91 return -ENOTSUP;
92}
93
94#endif /* CONFIG_MDNS_RESPONDER_RUNTIME_IFACE_CONTROL || __DOXYGEN__ */
95
96#ifdef __cplusplus
97}
98#endif
99
100#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:857