diff options
Diffstat (limited to 'src/libutil/hash.h')
-rw-r--r-- | src/libutil/hash.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libutil/hash.h b/src/libutil/hash.h index f983a0be8..bae3cacfa 100644 --- a/src/libutil/hash.h +++ b/src/libutil/hash.h @@ -89,4 +89,16 @@ void rspamd_lru_hash_destroy (rspamd_lru_hash_t *hash); */ int rspamd_lru_hash_foreach (rspamd_lru_hash_t *hash, int it, gpointer *k, gpointer *v); + +/** + * Returns number of elements in a hash + * @param hash hash object + */ +guint rspamd_lru_hash_size (rspamd_lru_hash_t *hash); + +/** + * Returns hash capacity + * @param hash hash object + */ +guint rspamd_lru_hash_capacity (rspamd_lru_hash_t *hash); #endif |