diff options
Diffstat (limited to 'utils/hashmap.h')
-rw-r--r-- | utils/hashmap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/hashmap.h b/utils/hashmap.h index cb8fd5074..3968fd3fe 100644 --- a/utils/hashmap.h +++ b/utils/hashmap.h @@ -186,4 +186,12 @@ bool hashmap_remove(hashmap_t *hashmap, void *key); */ bool hashmap_iterate(hashmap_t *hashmap, hashmap_iteration_cb_t cb, void *ctx); +/** + * Get the number of entries in this map + * + * \param hashmap The hashmap to retrieve the entry count from + * \return The number of entries in the hashmap + */ +size_t hashmap_count(hashmap_t *hashmap); + #endif |