2022-10-11 16:31:57 +02:00
|
|
|
/*
|
2022-08-08 16:39:13 +02:00
|
|
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
2022-10-11 16:31:57 +02:00
|
|
|
*
|
2021-06-29 15:02:48 +02:00
|
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
2022-10-11 16:31:57 +02:00
|
|
|
*/
|
2020-07-23 17:16:15 +04:00
|
|
|
#pragma once
|
2021-06-29 15:02:48 +02:00
|
|
|
#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);
|
|
|
|
}
|
2022-08-08 16:39:13 +02:00
|
|
|
|
|
|
|
static inline bool mdns_is_netif_ready(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|