summaryrefslogtreecommitdiff
path: root/inc/kv.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/kv.h')
-rw-r--r--inc/kv.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/kv.h b/inc/kv.h
new file mode 100644
index 0000000..8db497a
--- /dev/null
+++ b/inc/kv.h
@@ -0,0 +1,19 @@
+#ifndef KV_H
+#define KV_H
+
+#include <stdlib.h>
+
+typedef struct {
+ char *key;
+ char *value;
+} kv_entry_t;
+
+typedef struct {
+ size_t capacity;
+ size_t count;
+ kv_entry_t *entries;
+} kv_t;
+
+kv_t *kv_init(size_t capacity);
+
+#endif