aboutsummaryrefslogtreecommitdiffstats
path: root/tap-stats_tree.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-04-01 09:08:27 +0000
committerGuy Harris <guy@alum.mit.edu>2005-04-01 09:08:27 +0000
commit80c1907a3650bd7ce3486deaf8bfe03998cc53cf (patch)
treef40c994e197238fcb60ea9206222296805d55dfb /tap-stats_tree.c
parent0f8018692fed4def8c299c3c6485c416c986e717 (diff)
Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. svn path=/trunk/; revision=13993
Diffstat (limited to 'tap-stats_tree.c')
-rw-r--r--tap-stats_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap-stats_tree.c b/tap-stats_tree.c
index 1cf1a4fe42..3e400edd2c 100644
--- a/tap-stats_tree.c
+++ b/tap-stats_tree.c
@@ -113,7 +113,7 @@ void register_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_) {
cfg->pr = g_malloc(sizeof(tree_cfg_pres));
cfg->pr->init_string = g_strdup_printf("%s,tree",cfg->abbr);
- register_ethereal_tap(cfg->pr->init_string, init_stats_tree);
+ register_tap_listener_cmd_arg(cfg->pr->init_string, init_stats_tree);
}