mdns: make delegate host address a list

Also adds unit test and doc string for new apis.


* Original commit: espressif/esp-idf@2d34352f3d
This commit is contained in:
Jiacheng Guo
2021-04-07 16:21:16 +08:00
committed by suren-gabrielyan-espressif
parent c8821199a2
commit 4049b3b5ed
9 changed files with 419 additions and 157 deletions

View File

@ -19,8 +19,9 @@
#include "esp_timer.h"
#include "esp_netif_ip_addr.h"
#include "freertos/FreeRTOS.h"
#include "mdns.h"
#define MDNS_ENABLE_DEBUG
//#define MDNS_ENABLE_DEBUG
#ifdef MDNS_ENABLE_DEBUG
#define _mdns_dbg_printf(...) printf(__VA_ARGS__)
@ -309,7 +310,7 @@ typedef struct mdns_out_question_s {
typedef struct mdns_host_item_t {
const char * hostname;
esp_ip_addr_t address;
mdns_ip_addr_t *address_list;
struct mdns_host_item_t *next;
} mdns_host_item_t;
@ -441,7 +442,7 @@ typedef struct {
} rx_handle;
struct {
const char * hostname;
esp_ip_addr_t address;
mdns_ip_addr_t *address_list;
} delegate_hostname;
} data;
} mdns_action_t;