summaryrefslogtreecommitdiffstats
path: root/contrib/unbound/util/storage/slabhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/util/storage/slabhash.h')
-rw-r--r--contrib/unbound/util/storage/slabhash.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/unbound/util/storage/slabhash.h b/contrib/unbound/util/storage/slabhash.h
index cf968f9..031a9da 100644
--- a/contrib/unbound/util/storage/slabhash.h
+++ b/contrib/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 {
OpenPOWER on IntegriCloud