summaryrefslogtreecommitdiffstats
path: root/src/emman.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emman.h')
-rw-r--r--src/emman.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/emman.h b/src/emman.h
new file mode 100644
index 0000000..5af5542
--- /dev/null
+++ b/src/emman.h
@@ -0,0 +1,21 @@
+#ifndef EMMAN_H_
+#define EMMAN_H_
+
+#include <stddef.h>
+
+#if __cplusplus
+extern "C" {
+#endif
+
+size_t chunk_round (size_t size);
+size_t chunk_fit (size_t header, size_t element_size, size_t max_increase);
+void *chunk_alloc (size_t size, int populate);
+void *chunk_realloc (void *ptr, size_t old_size, size_t new_size);
+void chunk_free (void *ptr, size_t size);
+
+#if __cplusplus
+}
+#endif
+
+#endif
+