aboutsummaryrefslogtreecommitdiff
path: root/src/core/idhash.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-05 17:59:23 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-05 17:59:23 -0700
commiteef8f5f4a4d8d05470503e7f6dc7270c7e488cb5 (patch)
tree0a4a8c3ee44e643ce47ae55cf8fb81e06d59d5d6 /src/core/idhash.c
parentf1cb2402734567b84e2b55129f98f9764167e13e (diff)
downloadnng-eef8f5f4a4d8d05470503e7f6dc7270c7e488cb5.tar.gz
nng-eef8f5f4a4d8d05470503e7f6dc7270c7e488cb5.tar.bz2
nng-eef8f5f4a4d8d05470503e7f6dc7270c7e488cb5.zip
idhash: introduce nni_idhash_count.
This will be used for some follow up work (UDP).
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);
+}