diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-07-15 16:24:35 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-07-15 16:24:35 +0000 |
commit | 5d9d9b82219cb87ee74b94ee3a8bf0d5ec51b57c (patch) | |
tree | c494459b75db5141e5035de2546e23ce53f01fc9 /epan/stats_tree.h | |
parent | 7deecbf36bcd15eda28be17fbf00d7fc05b31003 (diff) |
From Wonil Kim: Enable statistics menu register for the tap plug-in. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7466
svn path=/trunk/; revision=43726
Diffstat (limited to 'epan/stats_tree.h')
-rw-r--r-- | epan/stats_tree.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/stats_tree.h b/epan/stats_tree.h index 98c6309d20..12385763a4 100644 --- a/epan/stats_tree.h +++ b/epan/stats_tree.h @@ -66,6 +66,22 @@ extern void stats_tree_register(const gchar *tapname, stat_tree_init_cb init, stat_tree_cleanup_cb cleanup); +/* registers a new stats tree with default group REGISTER_STAT_GROUP_UNSORTED from a plugin + * abbr: protocol abbr + * name: protocol display name + * flags: tap listener flags for per-packet callback + * packet: per packet callback + * init: tree initialization callback + * cleanup: cleanup callback + */ +extern void stats_tree_register_plugin(const gchar *tapname, + const gchar *abbr, + const gchar *name, + guint flags, + stat_tree_packet_cb packet, + stat_tree_init_cb init, + stat_tree_cleanup_cb cleanup); + /* registers a new stats tree * abbr: protocol abbr * name: protocol display name |