Skip to content

Commit fa951bf

Browse files
mdns: Use predefined interfaces to prepare for custom netifs
* Original commit: espressif/esp-idf@f90b3b7
1 parent 605d1fa commit fa951bf

File tree

4 files changed

+169
-627
lines changed

4 files changed

+169
-627
lines changed

components/mdns/include/mdns.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,22 @@ extern "C" {
2222
#define MDNS_TYPE_ANY 0x00FF
2323

2424
#define CONFIG_MDNS_IF_MAX 4
25-
#define ACTION_ENABLE 1
26-
#define ACTION_ENABLE_WITH_DHCP_CHECK 2
27-
#define ACTION_ANNOUNCE 3
28-
#define ACTION_ENABLE_ANNOUNCE 4
29-
#define ACTION_DISABLE 5
3025

3126
/**
3227
* @brief Asynchronous query handle
3328
*/
3429
typedef struct mdns_search_once_s mdns_search_once_t;
3530

31+
32+
typedef enum {
33+
MDNS_EVENT_ENABLE_IP4 = 1 << 1,
34+
MDNS_EVENT_ENABLE_IP6 = 1 << 2,
35+
MDNS_EVENT_ANNOUNCE_IP4 = 1 << 3,
36+
MDNS_EVENT_ANNOUNCE_IP6 = 1 << 4,
37+
MDNS_EVENT_DISABLE_IP4 = 1 << 5,
38+
MDNS_EVENT_DISABLE_IP6 = 1 << 6,
39+
} mdns_event_actions_t;
40+
3641
/**
3742
* @brief mDNS enum to specify the ip_protocol type
3843
*/

0 commit comments

Comments
 (0)