mdns: allow explicit txt value length

This commit is contained in:
Jiacheng Guo
2021-06-15 20:13:00 +08:00
parent 2ed6e269e7
commit b4e0088b68
4 changed files with 140 additions and 31 deletions
@@ -277,7 +277,8 @@ typedef struct {
typedef struct mdns_txt_linked_item_s {
const char * key; /*!< item key name */
const char * value; /*!< item value string */
char * value; /*!< item value string */
uint8_t value_len; /*!< item value length */
struct mdns_txt_linked_item_s * next; /*!< next result, or NULL for the last result in the list */
} mdns_txt_linked_item_t;
@@ -426,6 +427,7 @@ typedef struct {
mdns_srv_item_t * service;
char * key;
char * value;
uint8_t value_len;
} srv_txt_set;
struct {
mdns_srv_item_t * service;