summaryrefslogtreecommitdiffstats
path: root/include/zix/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/zix/hash.h')
-rw-r--r--include/zix/hash.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/include/zix/hash.h b/include/zix/hash.h
index 3905038..6312d7b 100644
--- a/include/zix/hash.h
+++ b/include/zix/hash.h
@@ -35,14 +35,10 @@ extern "C" {
typedef struct ZixHashImpl ZixHash;
-/**
- Function for computing the hash of an element.
-*/
+/// Function for computing the hash of an element
typedef uint32_t (*ZixHashFunc)(const void* value);
-/**
- Function to visit a hash element.
-*/
+/// Function to visit a hash element
typedef void (*ZixHashVisitFunc)(void* value, void* user_data);
/**
@@ -62,16 +58,12 @@ ZIX_API
ZixHash*
zix_hash_new(ZixHashFunc hash_func, ZixEqualFunc equal_func, size_t value_size);
-/**
- Free `hash`.
-*/
+/// Free `hash`
ZIX_API
void
zix_hash_free(ZixHash* hash);
-/**
- Return the number of elements in `hash`.
-*/
+/// Return the number of elements in `hash`
ZIX_PURE_API
size_t
zix_hash_size(const ZixHash* hash);