summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hash.h b/hash.h
new file mode 100644
index 0000000..6fe804c
--- /dev/null
+++ b/hash.h
@@ -0,0 +1,10 @@
+#ifndef __SAFEC_HASH_H
+#define __SAFEC_HASH_H
+#include "types.h"
+
+typedef size_t (*hash_func_t)(const void* key);
+typedef bool (*eq_func_t)(const void* key1, const void* key2);
+
+size_t hash_bytes(const void* start, size_t size);
+
+#endif