aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'map.h')
-rw-r--r--map.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/map.h b/map.h
new file mode 100644
index 0000000..c1dd5e1
--- /dev/null
+++ b/map.h
@@ -0,0 +1,13 @@
+struct mapkey {
+ uint64_t hash;
+ const char *str;
+ size_t len;
+};
+
+void mapstrkey(struct mapkey *, const char *);
+void mapbufkey(struct mapkey *, const char *, size_t);
+
+struct map *mkmap(size_t);
+void delmap(struct map *, void(void *));
+void **mapput(struct map *, struct mapkey *);
+void *mapget(struct map *, struct mapkey *);