diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-01-02 16:25:36 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-01-02 16:25:36 +0100 |
| commit | 90600e3f0761dcd2858a591c68c62c2fd259a381 (patch) | |
| tree | cdea63b8ee351a51c98df994563835b246170181 /src_c/pool.h | |
| parent | 746249269e78e0b2043b24c5d0ee061d03ce3db5 (diff) | |
WIP c implementation
Diffstat (limited to 'src_c/pool.h')
| -rw-r--r-- | src_c/pool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src_c/pool.h b/src_c/pool.h index 6998df6..e6ac0b2 100644 --- a/src_c/pool.h +++ b/src_c/pool.h @@ -2,6 +2,7 @@ #define OPCUT_POOL_H #include <stddef.h> +#include <hat/allocator.h> #ifdef __cplusplus extern "C" { @@ -9,7 +10,7 @@ extern "C" { typedef struct opcut_pool_t opcut_pool_t; -opcut_pool_t *opcut_pool_create(size_t item_size); +opcut_pool_t *opcut_pool_create(hat_allocator_t *a, 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); |
