about summary refs log tree commit diff stats
path: root/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'pool.h')
-rw-r--r--pool.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pool.h b/pool.h
new file mode 100644
index 0000000..d678598
--- /dev/null
+++ b/pool.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifndef POOL_H_
+#define POOL_H_
+
+int
+pl_setup(size_t object_size, size_t pool_size);
+
+void *
+pl_alloc(void);
+
+void
+pl_free(void *object);
+
+void
+pl_cleanup(void);
+
+#endif