mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
619235c2ee
Removed lwip dependencies Simplified the mocks for esp32 and esp-netif
22 lines
396 B
C
22 lines
396 B
C
#pragma once
|
|
#include "esp32_mock.h"
|
|
#include "mdns.h"
|
|
#include "mdns_private.h"
|
|
|
|
|
|
static inline void* _mdns_get_packet_data(mdns_rx_packet_t *packet)
|
|
{
|
|
return packet->pb->payload;
|
|
}
|
|
|
|
static inline size_t _mdns_get_packet_len(mdns_rx_packet_t *packet)
|
|
{
|
|
return packet->pb->len;
|
|
}
|
|
|
|
static inline void _mdns_packet_free(mdns_rx_packet_t *packet)
|
|
{
|
|
free(packet->pb);
|
|
free(packet);
|
|
}
|