aboutsummaryrefslogtreecommitdiffstats
path: root/register.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-04-23 03:51:03 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-04-23 03:51:03 +0000
commit9abce60635dcb0bd95cbca2db2796dad0dc301c4 (patch)
treee7b3cf15f160bb39b9939f6a9fcbbfbce4ba51b6 /register.h
parent5a53268e4cde9f3278a29404958e373e9fd17017 (diff)
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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7540 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'register.h')
-rw-r--r--register.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/register.h b/register.h
index cd17238c77..35b50e3ae5 100644
--- a/register.h
+++ b/register.h
@@ -1,13 +1,12 @@
/* register.h
* Definitions for protocol registration
*
- * $Id: register.h,v 1.4 2002/10/31 22:16:01 guy Exp $
+ * $Id: register.h,v 1.5 2003/04/23 03:50:59 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -29,5 +28,6 @@
extern void register_all_protocols(void);
extern void register_all_protocol_handoffs(void);
extern void register_all_tap_listeners(void);
-extern void register_ethereal_tap(char *str, void (*init)(char *), char *menu, void(*menu_init)(void));
+extern void register_all_tap_menus(void);
+extern void register_ethereal_tap(char *str, void (*init)(char *));
#endif /* __REGISTER_H__ */