diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-12-27 23:03:52 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-12-27 23:04:04 +0100 |
| commit | b0aedec7bb1eacf5967a8f086fc7740048873a58 (patch) | |
| tree | a56e148380f7818a18036daf95d0ebde036e505c /src_c/pool.h | |
| parent | fd0be422180178516d6d2bf3fb1f343c9ab79e53 (diff) | |
WIP c implementation
Diffstat (limited to 'src_c/pool.h')
| -rw-r--r-- | src_c/pool.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src_c/pool.h b/src_c/pool.h index 784278e..6998df6 100644 --- a/src_c/pool.h +++ b/src_c/pool.h @@ -9,11 +9,10 @@ extern "C" { 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_get(opcut_pool_t *pool); -void opcut_pool_return(opcut_pool_t *pool, void *item); +void *opcut_pool_alloc(opcut_pool_t *pool); +void opcut_pool_free(opcut_pool_t *pool, void *item); #ifdef __cplusplus } |
