2022-03-17 07:51:00 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file esp_pbuf reference interface file
|
|
|
|
*/
|
|
|
|
|
2022-05-11 10:01:48 -04:00
|
|
|
#pragma once
|
2022-03-17 07:51:00 -04:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "lwip/pbuf.h"
|
|
|
|
#include "esp_netif.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Allocate custom pbuf containing pointer to a private l2-free function
|
|
|
|
*
|
|
|
|
* @note pbuf_free() will deallocate this custom pbuf and call the driver assigned free function
|
|
|
|
*/
|
|
|
|
struct pbuf* esp_pbuf_allocate(esp_netif_t *esp_netif, void *buffer, size_t len, void *l2_buff);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|