summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorroot <root>2012-06-28 15:19:15 +0000
committerroot <root>2012-06-28 15:19:15 +0000
commit5ee396e7ac453f939e8ec74546756dba45906827 (patch)
tree8c3f1edfecb8a33018511ab6aa869188922750f4 /src
parent1504b7903ba28fb7b4b420c3c74d96dbb6edae65 (diff)
add emman.h/c and use it for scrollback
Diffstat (limited to 'src')
-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
+