summaryrefslogtreecommitdiff
path: root/src/coucal.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-14 20:18:56 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-14 20:18:56 +0000
commit7925eccecd597a2a1aacdfca7da4641e91a07cc6 (patch)
tree977217eb81023dd7b658d2e1348ca1ce400e3408 /src/coucal.h
parent60ee0687d52c4eee89d876f49fbeea665aef0ac8 (diff)
Added coucal_hash_data()
Diffstat (limited to 'src/coucal.h')
-rw-r--r--src/coucal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/coucal.h b/src/coucal.h
index 9a7336f..0ea9486 100644
--- a/src/coucal.h
+++ b/src/coucal.h
@@ -433,11 +433,17 @@ COUCAL_EXTERN coucal_item *coucal_enum_next(struct_coucal_enum * e);
/**
* Compute a hash, given a string. This is the default function used for
- * hashing keys, which are by default strings.
+ * hashing keys, which are by default strings. This function uses
+ * coucal_hash_data() as backend.
**/
COUCAL_EXTERN coucal_hashkeys coucal_hash_string(const char *value);
/**
+ * Compute a hash, given an opaque buffer.
+ **/
+COUCAL_EXTERN coucal_hashkeys coucal_hash_data(const void *data, size_t size);
+
+/**
* Set default global assertion failure handler.
* The handler will be used if no specific handler was defined in the
* hashtable itself.