aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/d2tk/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/d2tk/hash.h')
-rw-r--r--subprojects/d2tk/d2tk/hash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/subprojects/d2tk/d2tk/hash.h b/subprojects/d2tk/d2tk/hash.h
index fc8d70f..be69e92 100644
--- a/subprojects/d2tk/d2tk/hash.h
+++ b/subprojects/d2tk/d2tk/hash.h
@@ -27,12 +27,22 @@
extern "C" {
#endif
+typedef struct _d2tk_hash_dict_t d2tk_hash_dict_t;
+
+struct _d2tk_hash_dict_t {
+ const void *key;
+ size_t len;
+};
+
D2TK_API uint64_t
d2tk_hash(const void *data, ssize_t nbytes);
D2TK_API uint64_t
d2tk_hash_foreach(const void *data, ssize_t nbytes, ...) __attribute__((sentinel));
+D2TK_API uint64_t
+d2tk_hash_dict(const d2tk_hash_dict_t *dict);
+
#ifdef __cplusplus
}
#endif