aboutsummaryrefslogtreecommitdiff
path: root/src_c/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src_c/pool.h')
-rw-r--r--src_c/pool.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src_c/pool.h b/src_c/pool.h
new file mode 100644
index 0000000..784278e
--- /dev/null
+++ b/src_c/pool.h
@@ -0,0 +1,22 @@
+#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_get(opcut_pool_t *pool);
+void opcut_pool_return(opcut_pool_t *pool, void *item);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif