aboutsummaryrefslogtreecommitdiff
path: root/src_c/pool.h
blob: 6998df678e9e53e9622da8787587546bede84bbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef OPCUT_POOL_H
#define OPCUT_POOL_H

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct opcut_pool_t opcut_pool_t;

opcut_pool_t *opcut_pool_create(size_t item_size);
void opcut_pool_destroy(opcut_pool_t *pool);
void *opcut_pool_alloc(opcut_pool_t *pool);
void opcut_pool_free(opcut_pool_t *pool, void *item);

#ifdef __cplusplus
}
#endif

#endif