diff options
author | Michael Mann <mmann78@netscape.net> | 2017-02-07 16:52:42 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-03-04 21:53:25 +0000 |
commit | 9b4f325132091c053131b352df914f378286809a (patch) | |
tree | 4b2418f6d53694cbcf8262ac3c6363f8cffc5928 /epan/wmem/wmem_tree.h | |
parent | 3cc1d1cf5aa6a5c05aa5d03b5e4c9fd844ced5a2 (diff) |
Add wmem_tree_count.
There are cases where wmem_tree needs to know its number of nodes.
Change-Id: I6411cf4275fd4d85a1d76382e1922d236be3b176
Reviewed-on: https://code.wireshark.org/review/20005
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/wmem/wmem_tree.h')
-rw-r--r-- | epan/wmem/wmem_tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/wmem/wmem_tree.h b/epan/wmem/wmem_tree.h index 788af2413e..bcb7fdf783 100644 --- a/epan/wmem/wmem_tree.h +++ b/epan/wmem/wmem_tree.h @@ -77,6 +77,11 @@ WS_DLL_PUBLIC gboolean wmem_tree_is_empty(wmem_tree_t *tree); +/** Returns number of nodes in tree */ +WS_DLL_PUBLIC +guint +wmem_tree_count(wmem_tree_t* tree); + /** Insert a node indexed by a guint32 key value. * * Data is a pointer to the structure you want to be able to retrieve by |