From eef8f5f4a4d8d05470503e7f6dc7270c7e488cb5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 5 Oct 2024 17:59:23 -0700 Subject: idhash: introduce nni_idhash_count. This will be used for some follow up work (UDP). --- src/core/idhash.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/idhash.c') 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); +} -- cgit v1.2.3-70-g09d2