aboutsummaryrefslogtreecommitdiff
path: root/src/core/idhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/idhash.c')
-rw-r--r--src/core/idhash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/idhash.c b/src/core/idhash.c
index 306c751f..73763a07 100644
--- a/src/core/idhash.c
+++ b/src/core/idhash.c
@@ -389,3 +389,9 @@ nni_id_visit(nni_id_map *m, uint64_t *keyp, void **valp, uint32_t *cursor)
*cursor = index;
return (false);
}
+
+uint32_t
+nni_id_count(const nni_id_map *m)
+{
+ return (m->id_count);
+}