summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/util/storage/slabhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/unbound/util/storage/slabhash.h')
-rw-r--r--usr.sbin/unbound/util/storage/slabhash.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/unbound/util/storage/slabhash.h b/usr.sbin/unbound/util/storage/slabhash.h
index cf968f9653d..031a9da0fac 100644
--- a/usr.sbin/unbound/util/storage/slabhash.h
+++ b/usr.sbin/unbound/util/storage/slabhash.h
@@ -184,6 +184,13 @@ void slabhash_setmarkdel(struct slabhash* table, lruhash_markdelfunc_t md);
void slabhash_traverse(struct slabhash* table, int wr,
void (*func)(struct lruhash_entry*, void*), void* arg);
+/*
+ * Count entries in slabhash.
+ * @param table: slabbed hash table;
+ * @return the number of items
+ */
+size_t count_slabhash_entries(struct slabhash* table);
+
/* --- test representation --- */
/** test structure contains test key */
struct slabhash_testkey {