mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
13 lines
388 B
C
13 lines
388 B
C
#ifndef MEMPOOL_H
|
|
#define MEMPOOL_H
|
|
|
|
#include <stddef.h>
|
|
|
|
struct mempool;
|
|
typedef struct mempool *mempool;
|
|
|
|
LIQ_PRIVATE void* mempool_create(mempool *mptr, unsigned int size, unsigned int capacity, void* (*malloc)(size_t), void (*free)(void*));
|
|
LIQ_PRIVATE void* mempool_alloc(mempool *mptr, unsigned int size, unsigned int capacity);
|
|
LIQ_PRIVATE void mempool_destroy(mempool m);
|
|
|
|
#endif
|