summaryrefslogtreecommitdiff
path: root/src/coucal.h
diff options
context:
space:
mode:
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.