about summary refs log tree commit diff stats
path: root/cached.h
diff options
context:
space:
mode:
Diffstat (limited to 'cached.h')
-rw-r--r--cached.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cached.h b/cached.h
new file mode 100644
index 0000000..32ca61c
--- /dev/null
+++ b/cached.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifndef CACHED_H_
+#define CACHED_H_
+
+int
+ca_setup(size_t object_size, size_t cache_size);
+
+void *
+ca_alloc(void);
+
+void
+ca_free(void *object);
+
+void
+ca_cleanup(void);
+
+#endif