summaryrefslogtreecommitdiff
path: root/tools/assets/n64texconv/lib/libimagequant/mempool.h
blob: 9b7333b117d5a87414484d0e014e9f80ab379eb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef MEMPOOL_H
#define MEMPOOL_H

#include <stddef.h>

struct mempool;
typedef struct mempool *mempoolptr;

LIQ_PRIVATE void* mempool_create(mempoolptr *mptr, const unsigned int size, unsigned int capacity, void* (*malloc)(size_t), void (*free)(void*));
LIQ_PRIVATE void* mempool_alloc(mempoolptr *mptr, const unsigned int size, const unsigned int capacity);
LIQ_PRIVATE void mempool_destroy(mempoolptr m);

#endif