diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-24 22:02:31 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-24 22:02:31 +0000 |
commit | 00435bf3903ca63f3cc4185dffd2cc7d08c6b8c3 (patch) | |
tree | 6a7d408f0b018fbedabd2b8e7893535b769a536e /epan/stats_tree.h | |
parent | 2ed9ca813b9caa1797b4d57e3ee15ff9acd8aaf8 (diff) |
Update to the stats_tree tapping API
- change the tap init_string to %s,tree instead of %s,stat
- change the registration key (it used to be tapname, that disallowed to register more than one tap per protocol)
- add a "pivot" node for convenience
svn path=/trunk/; revision=13502
Diffstat (limited to 'epan/stats_tree.h')
-rw-r--r-- | epan/stats_tree.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/epan/stats_tree.h b/epan/stats_tree.h index 9b62ee3213..dbeb7c287b 100644 --- a/epan/stats_tree.h +++ b/epan/stats_tree.h @@ -52,7 +52,8 @@ typedef void (*stat_tree_init_cb)(stats_tree*); * packet: per packet callback * init: tree initialization callback */ -extern void register_stats_tree(guint8* abbr, +extern void register_stats_tree(guint8* tapname, + guint8* abbr, guint8* name, stat_tree_packet_cb packet, stat_tree_init_cb init ); @@ -101,6 +102,18 @@ extern int tick_range_with_parent_name(stats_tree* st, const gchar* parent_name, int value_in_range); +/* */ +extern int create_pivot_node(stats_tree* st, + const gchar* name, + int parent_id); + +extern int create_pivot_node_with_parent_name(stats_tree* st, + const gchar* name, + const gchar* parent_name); + +extern int tick_pivot(stats_tree* st, + int pivot_id, + const gchar* pivot_value); /* * manipulates the value of the node whose name is given |