From 80c1907a3650bd7ce3486deaf8bfe03998cc53cf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 1 Apr 2005 09:08:27 +0000 Subject: 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 --- tap-mgcpstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tap-mgcpstat.c') diff --git a/tap-mgcpstat.c b/tap-mgcpstat.c index f8b92b6192..bd96b07468 100644 --- a/tap-mgcpstat.c +++ b/tap-mgcpstat.c @@ -235,7 +235,7 @@ register_tap_listener_mgcpstat(void) { /* We don't register this tap, if we don't have the mgcp plugin loaded.*/ if (find_tap_id("mgcp")) { - register_ethereal_tap("mgcp,rtd", mgcpstat_init); + register_tap_listener_cmd_arg("mgcp,rtd", mgcpstat_init); } } -- cgit v1.2.3