summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorCarson Fleming <[email protected]>2026-02-14 02:53:37 -0500
committerCarson Fleming <[email protected]>2026-02-14 02:53:37 -0500
commit9ef0abf7ab5266f6b58c0e55bbe9dd9038bc7f6e (patch)
tree54abfa548d7aae56c1ace1a72bce8581570b5fd2 /hash.h
parent1a08245d480b8a18fcbc80efd8602cdb90d6ed5e (diff)
downloadsafec-9ef0abf7ab5266f6b58c0e55bbe9dd9038bc7f6e.tar.gz
more like dangerousc.org atp
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