diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-04-23 03:51:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-04-23 03:51:03 +0000 |
commit | 4cfd8b0f360efd2d867333b80f201d13c630f7c8 (patch) | |
tree | e7b3cf15f160bb39b9939f6a9fcbbfbce4ba51b6 /tap-iousers.c | |
parent | 6b0b09b402cb6e47f4f78f867ef10dc43af1b42c (diff) | |
download | wireshark-4cfd8b0f360efd2d867333b80f201d13c630f7c8.tar.gz wireshark-4cfd8b0f360efd2d867333b80f201d13c630f7c8.tar.bz2 wireshark-4cfd8b0f360efd2d867333b80f201d13c630f7c8.zip |
Allow taps to have menu item registration routines; the menu item
registration routines, for taps with menu items (taps that can be run
from the "Tools->Statistics" menu), create the menu item for the tap.
"make-tapreg-dotc" constructs a "register_all_tap_menus()" function that
calls all the tap menu item registration routines it finds, and Ethereal
calls that routine after the main window has been constructed (so that
the main menu exists, as the menu items are added to it). (Tethereal
doesn't call it.)
Get rid of the "menu" and "menu_init" arguments to
"register_ethereal_tap"; the menu item is registered in the tap's menu
item registration routine, not in its main registration routine.
Have the RTP GUI tap register its menu item that way, rather than by
having it compiled into "gtk/menu.c". (We're not ready yet to have taps
whose menu items are under a submenu register themselves in that
fashion, as "register_tap_menu_item()" can't yet create submenus.)
svn path=/trunk/; revision=7540
Diffstat (limited to 'tap-iousers.c')
-rw-r--r-- | tap-iousers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tap-iousers.c b/tap-iousers.c index 0a89c877e0..95aeb7e541 100644 --- a/tap-iousers.c +++ b/tap-iousers.c @@ -1,7 +1,7 @@ /* tap-iousers.c * iostat 2003 Ronnie Sahlberg * - * $Id: tap-iousers.c,v 1.4 2003/03/03 23:46:48 sahlberg Exp $ + * $Id: tap-iousers.c,v 1.5 2003/04/23 03:50:59 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -459,6 +459,6 @@ iousers_init(char *optarg) void register_tap_listener_iousers(void) { - register_ethereal_tap("io,users,", iousers_init, NULL, NULL); + register_ethereal_tap("io,users,", iousers_init); } |