1 /* 2 * Copyright (c) 2023 Nordic Semiconductor ASA. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** @file 8 * @brief mDNS responder API 9 * 10 * This file contains the mDNS responder API. These APIs are used by the 11 * to register mDNS records. 12 */ 13 14 #ifndef ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_ 15 #define ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_ 16 17 #include <stddef.h> 18 #include <zephyr/net/dns_sd.h> 19 20 /** 21 * @brief Register continuous memory of @ref dns_sd_rec records. 22 * 23 * mDNS responder will start with iteration over mDNS records registered using 24 * @ref DNS_SD_REGISTER_SERVICE (if any) and then go over external records. 25 * 26 * @param records A pointer to an array of mDNS records. It is stored internally 27 * without copying the content so it must be kept valid. It can 28 * be set to NULL, e.g. before freeing the memory block. 29 * @param count The number of elements 30 * @return 0 for OK; -EINVAL for invalid parameters. 31 */ 32 int mdns_responder_set_ext_records(const struct dns_sd_rec *records, size_t count); 33 34 #endif /* ZEPHYR_INCLUDE_NET_MDNS_RESPONDER_H_ */ 35