aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-03-21 15:40:33 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-03-21 15:40:33 +0000
commit3af24ce10a37b7778d42a1cd91482f4015a9c205 (patch)
treea9482b9f7b3c2d8b4a1c07176c558954dcaa1358 /epan/stats_tree.h
parent9e7a393c1f52980cc16890a8b18546cdabda3dc6 (diff)
Add a cleanup call-back to the stats_tree.
svn path=/trunk/; revision=13851
Diffstat (limited to 'epan/stats_tree.h')
-rw-r--r--epan/stats_tree.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/stats_tree.h b/epan/stats_tree.h
index 557984b362..74869e836e 100644
--- a/epan/stats_tree.h
+++ b/epan/stats_tree.h
@@ -46,6 +46,9 @@ typedef int (*stat_tree_packet_cb)(stats_tree*,
/* stats_tree initilaization callback */
typedef void (*stat_tree_init_cb)(stats_tree*);
+/* stats_tree initilaization callback */
+typedef void (*stat_tree_cleanup_cb)(stats_tree*);
+
/* registers a new stats tree
* abbr: protocol abbr
* name: protocol name
@@ -56,7 +59,8 @@ extern void stats_tree_register(guint8* tapname,
guint8* abbr,
guint8* name,
stat_tree_packet_cb packet,
- stat_tree_init_cb init );
+ stat_tree_init_cb init,
+ stat_tree_cleanup_cb cleanup);
extern int stats_tree_parent_id_by_name(stats_tree* st, const gchar* parent_name);