1 #pragma once 2 #include "esp32_mock.h" 3 #include "mdns.h" 4 #include "mdns_private.h" 5 6 _mdns_get_packet_data(mdns_rx_packet_t * packet)7static inline void* _mdns_get_packet_data(mdns_rx_packet_t *packet) 8 { 9 return packet->pb->payload; 10 } 11 _mdns_get_packet_len(mdns_rx_packet_t * packet)12static inline size_t _mdns_get_packet_len(mdns_rx_packet_t *packet) 13 { 14 return packet->pb->len; 15 } 16 _mdns_packet_free(mdns_rx_packet_t * packet)17static inline void _mdns_packet_free(mdns_rx_packet_t *packet) 18 { 19 free(packet->pb); 20 free(packet); 21 } 22