mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-24 07:47:30 +02:00
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:
committed by
suren-gabrielyan-espressif
parent
c8821199a2
commit
4049b3b5ed
@ -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;
|
||||
|
Reference in New Issue
Block a user