aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_map.h
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-04-21 18:11:50 +0200
committerAnders Broman <a.broman58@gmail.com>2016-04-22 04:34:45 +0000
commitfc3885fd517b5db346963e2ba1af48e746526017 (patch)
treed7f1fb76f652e5150845130b611cd1e9f03f81ca /epan/wmem/wmem_map.h
parentfe75c87575a878a15831302dfab3e1c2424344e3 (diff)
wmem: add wmem_map_size().
Change-Id: I3acca7939466a4436e23bcf828ef94f927ce8b76 Reviewed-on: https://code.wireshark.org/review/15042 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wmem/wmem_map.h')
-rw-r--r--epan/wmem/wmem_map.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/wmem/wmem_map.h b/epan/wmem/wmem_map.h
index ac23867796..3e10c9a6dc 100644
--- a/epan/wmem/wmem_map.h
+++ b/epan/wmem/wmem_map.h
@@ -114,6 +114,15 @@ WS_DLL_PUBLIC
void
wmem_map_foreach(wmem_map_t *map, GHFunc foreach_func, gpointer user_data);
+/** Return the number of elements of the map.
+ *
+ * @param map The map to use
+ * @return the number of elements
+*/
+WS_DLL_PUBLIC
+guint
+wmem_map_size(wmem_map_t *map);
+
/** Compute a strong hash value for an arbitrary sequence of bytes. Use of this
* hash value should be secure against algorithmic complexity attacks, even for
* short keys. The computation uses a random seed which is generated on wmem