Zephyr API Documentation  3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mdns_responder.h File Reference

mDNS responder API More...

#include <stddef.h>
#include <zephyr/net/dns_sd.h>

Go to the source code of this file.

Functions

int mdns_responder_set_ext_records (const struct dns_sd_rec *records, size_t count)
 Register continuous memory of dns_sd_rec records.
 

Detailed Description

mDNS responder API

This file contains the mDNS responder API. These APIs are used by the to register mDNS records.

Function Documentation

◆ mdns_responder_set_ext_records()

int mdns_responder_set_ext_records ( const struct dns_sd_rec records,
size_t  count 
)

Register continuous memory of dns_sd_rec records.

mDNS responder will start with iteration over mDNS records registered using DNS_SD_REGISTER_SERVICE (if any) and then go over external records.

Parameters
recordsA pointer to an array of mDNS records. It is stored internally without copying the content so it must be kept valid. It can be set to NULL, e.g. before freeing the memory block.
countThe number of elements
Returns
0 for OK; -EINVAL for invalid parameters.