35 #ifndef MESSAGEPOOL_H_ 36 #define MESSAGEPOOL_H_ 106 #endif // MESSAGEPOOL_H_ uint16_t otPlatMessagePoolNumFreeBuffers(otInstance *aInstance)
Get the number of free buffers.
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
This file defines the types and structures used in the OpenThread library API.
This file defines the top-level OpenThread APIs related to message buffer and queues.
This type points to an OpenThread message buffer.
Definition: types.h:479
void otPlatMessagePoolInit(otInstance *aInstance, uint16_t aMinNumFreeBuffers, size_t aBufferSize)
Initialize the platform implemented message pool.
otMessage * otPlatMessagePoolNew(otInstance *aInstance)
Allocate a buffer from the platform managed buffer pool.
void otPlatMessagePoolFree(otInstance *aInstance, otMessage *aBuffer)
This function is used to free a Buffer back to the platform managed buffer pool.