# Makefile.am
# Automake file for the GTK interface routines for Ethereal
#
-# $Id: Makefile.am,v 1.89 2004/01/22 20:31:44 guy Exp $
+# $Id: Makefile.am,v 1.90 2004/02/11 04:17:02 guy Exp $
#
# Ethereal - Network traffic analyzer
# By Gerald Combs <gerald@ethereal.com>
summary_dlg.h \
supported_protos_dlg.h \
tap_dfilter_dlg.h \
+ tap_menu.h \
tcp_graph.h \
toolbar.h \
ui_util.h
*
* MUCH code modified from service_response_time_table.c.
*
- * $Id: ansi_a_stat.c,v 1.11 2004/02/06 19:19:09 ulfl Exp $
+ * $Id: ansi_a_stat.c,v 1.12 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"
#include "simple_dialog.h"
*
* MUCH code modified from service_response_time_table.c.
*
- * $Id: ansi_map_stat.c,v 1.14 2004/02/06 19:19:09 ulfl Exp $
+ * $Id: ansi_map_stat.c,v 1.15 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"
#include "simple_dialog.h"
/* bootp_stat.c
* boop_stat 2003 Jean-Michel FAYARD
*
- * $Id: bootp_stat.c,v 1.15 2004/01/31 03:22:39 guy Exp $
+ * $Id: bootp_stat.c,v 1.16 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"
#include "tap.h"
/* dcerpc_stat.c
* dcerpc_stat 2002 Ronnie Sahlberg
*
- * $Id: dcerpc_stat.c,v 1.46 2004/01/31 03:22:39 guy Exp $
+ * $Id: dcerpc_stat.c,v 1.47 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"
#include "ui_util.h"
/* endpoint_talkers_eth.c
* endpoint_talkers_eth 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_eth.c,v 1.20 2004/01/03 18:05:55 sharpe Exp $
+ * $Id: endpoint_talkers_eth.c,v 1.21 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_fc.c
* endpoint_talkers_fc 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_fc.c,v 1.20 2004/01/03 18:05:55 sharpe Exp $
+ * $Id: endpoint_talkers_fc.c,v 1.21 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_fddi.c
* endpoint_talkers_fddi 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_fddi.c,v 1.15 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_fddi.c,v 1.16 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_ip.c
* endpoint_talkers_ip 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_ip.c,v 1.21 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_ip.c,v 1.22 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_ipx.c
* endpoint_talkers_ipx 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_ipx.c,v 1.19 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_ipx.c,v 1.20 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_tcpip.c
* endpoint_talkers_tcpip 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_tcpip.c,v 1.22 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_tcpip.c,v 1.23 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_tr.c
* endpoint_talkers_tr 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_tr.c,v 1.21 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_tr.c,v 1.22 2004/02/11 04:17:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* endpoint_talkers_udpip.c
* endpoint_talkers_udpip 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_udpip.c,v 1.22 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: endpoint_talkers_udpip.c,v 1.23 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "endpoint_talkers_table.h"
/* fc_stat.c
* fc_stat 2003 Ronnie Sahlberg
*
- * $Id: fc_stat.c,v 1.22 2004/01/31 03:22:39 guy Exp $
+ * $Id: fc_stat.c,v 1.23 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../packet-fc.h"
*
* MUCH code modified from service_response_time_table.c.
*
- * $Id: gsm_a_stat.c,v 1.11 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: gsm_a_stat.c,v 1.12 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"
#include "simple_dialog.h"
* h225 message counter for ethereal
* Copyright 2003 Lars Roland
*
- * $Id: h225_counter.c,v 1.9 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: h225_counter.c,v 1.10 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../register.h"
* h225 RAS Service Response Time statistics for ethereal
* Copyright 2003 Lars Roland
*
- * $Id: h225_ras_srt.c,v 1.8 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: h225_ras_srt.c,v 1.9 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../register.h"
/* http_stat.c
* http_stat 2003 Jean-Michel FAYARD
*
- * $Id: http_stat.c,v 1.17 2004/01/31 03:22:41 guy Exp $
+ * $Id: http_stat.c,v 1.18 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"
#include "tap.h"
/* io_stat.c
* io_stat 2002 Ronnie Sahlberg
*
- * $Id: io_stat.c,v 1.60 2004/02/11 00:55:28 guy Exp $
+ * $Id: io_stat.c,v 1.61 2004/02/11 04:17:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "gtkglobals.h"
#include "epan/epan_dissect.h"
#include "epan/packet_info.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../register.h"
#include "alert_box.h"
*
* MUCH code modified from service_response_time_table.c.
*
- * $Id: isup_stat.c,v 1.14 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: isup_stat.c,v 1.15 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"
#include "simple_dialog.h"
/* ldap_stat.c
* ldap_stat 2003 Ronnie Sahlberg
*
- * $Id: ldap_stat.c,v 1.10 2004/01/31 03:22:41 guy Exp $
+ * $Id: ldap_stat.c,v 1.11 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../packet-ldap.h"
/* menu.c
* Menu routines
*
- * $Id: menu.c,v 1.160 2004/02/11 03:55:48 guy Exp $
+ * $Id: menu.c,v 1.161 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "main.h"
#include "menu.h"
+#include "tap_menu.h"
#include <epan/packet.h>
#include <epan/resolv.h>
#include "prefs.h"
/* menu.h
* Menu definitions
*
- * $Id: menu.h,v 1.16 2004/02/01 20:28:11 ulfl Exp $
+ * $Id: menu.h,v 1.17 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
void set_menu_object_data (gchar *path, gchar *key, gpointer data);
gint popup_menu_handler(GtkWidget *widget, GdkEvent *event, gpointer data);
-
-/*
- * Add a new menu item for a tap.
- * This must be called after we've created the main menu, so it can't
- * be called from the routine that registers taps - we have to introduce
- * another per-tap registration routine.
- *
- * "callback" gets called when the menu item is selected; it should do
- * the work of creating the tap window.
- *
- * "selected_packet_enabled" gets called by "set_menus_for_selected_packet()";
- * it's passed a pointer to the "frame_data" structure for the current frame,
- * if any, and to the "epan_dissect_t" structure for that frame, if any, and
- * should return TRUE if the tap will work now (which might depend on whether
- * a frame is selected and, if one is, on the frame) and FALSE if not.
- *
- * "selected_tree_row_enabled" gets called by
- * "set_menus_for_selected_tree_row()"; it's passed a pointer to the
- * "field_info" structure for the currently selected field, if any,
- * and should return TRUE if the tap will work now (which might depend on
- * whether a tree row is selected and, if one is, on the tree row) and
- * FALSE if not.
- */
-extern void register_tap_menu_item(char *name, GtkItemFactoryCallback callback,
- gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
- gboolean (*selected_tree_row_enabled)(field_info *),
- gpointer callback_data);
-
extern GtkWidget *popup_menu_object;
#ifdef __cplusplus
* mgcp-statistics for ethereal
* Copyright 2003 Lars Roland
*
- * $Id: mgcp_stat.c,v 1.25 2004/02/06 19:19:10 ulfl Exp $
+ * $Id: mgcp_stat.c,v 1.26 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../register.h"
/* rpc_progs.c
* rpc_progs 2002 Ronnie Sahlberg
*
- * $Id: rpc_progs.c,v 1.16 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: rpc_progs.c,v 1.17 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "tap.h"
#include "../register.h"
#include "packet-rpc.h"
/* rpc_stat.c
* rpc_stat 2002 Ronnie Sahlberg
*
- * $Id: rpc_stat.c,v 1.35 2004/01/31 03:22:42 guy Exp $
+ * $Id: rpc_stat.c,v 1.36 2004/02/11 04:17:04 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"
#include "tap.h"
/* rtp_analysis.c
* RTP analysis addition for ethereal
*
- * $Id: rtp_analysis.c,v 1.34 2004/02/11 01:37:13 guy Exp $
+ * $Id: rtp_analysis.c,v 1.35 2004/02/11 04:17:04 guy Exp $
*
* Copyright 2003, Alcatel Business Systems
* By Lars Ruoff <lars.ruoff@gmx.net>
#include "ui_util.h"
#include "alert_box.h"
#include "simple_dialog.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "main.h"
#include "progress_dlg.h"
#include "compat_macros.h"
/* rtp_stream_dlg.c
* RTP streams summary addition for ethereal
*
- * $Id: rtp_stream_dlg.c,v 1.13 2004/02/06 19:19:11 ulfl Exp $
+ * $Id: rtp_stream_dlg.c,v 1.14 2004/02/11 04:17:04 guy Exp $
*
* Copyright 2003, Alcatel Business Systems
* By Lars Ruoff <lars.ruoff@gmx.net>
#include "globals.h"
#include "epan/filesystem.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "dlg_utils.h"
#include "ui_util.h"
#include "main.h"
/* smb_stat.c
* smb_stat 2003 Ronnie Sahlberg
*
- * $Id: smb_stat.c,v 1.33 2004/01/31 03:22:42 guy Exp $
+ * $Id: smb_stat.c,v 1.34 2004/02/11 04:17:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <string.h>
#include "../epan/packet_info.h"
#include "../epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "../tap.h"
#include "../epan/value_string.h"
#include "../smb.h"
--- /dev/null
+/* tap_menu.h
+ * Menu definitions for use by taps
+ *
+ * $Id: tap_menu.h,v 1.1 2004/02/11 04:17:05 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * 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
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GTKGUITAPMENU_H__
+#define __GTKGUITAPMENU_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/*
+ * Add a new menu item for a tap.
+ * This must be called after we've created the main menu, so it can't
+ * be called from the routine that registers taps - we have to introduce
+ * another per-tap registration routine.
+ *
+ * "callback" gets called when the menu item is selected; it should do
+ * the work of creating the tap window.
+ *
+ * "selected_packet_enabled" gets called by "set_menus_for_selected_packet()";
+ * it's passed a pointer to the "frame_data" structure for the current frame,
+ * if any, and to the "epan_dissect_t" structure for that frame, if any, and
+ * should return TRUE if the tap will work now (which might depend on whether
+ * a frame is selected and, if one is, on the frame) and FALSE if not.
+ *
+ * "selected_tree_row_enabled" gets called by
+ * "set_menus_for_selected_tree_row()"; it's passed a pointer to the
+ * "field_info" structure for the currently selected field, if any,
+ * and should return TRUE if the tap will work now (which might depend on
+ * whether a tree row is selected and, if one is, on the tree row) and
+ * FALSE if not.
+ */
+extern void register_tap_menu_item(char *name, GtkItemFactoryCallback callback,
+ gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
+ gboolean (*selected_tree_row_enabled)(field_info *),
+ gpointer callback_data);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __GTKGUITAPMENU_H__ */
/* wsp_stat.c
* wsp_stat 2003 Jean-Michel FAYARD
*
- * $Id: wsp_stat.c,v 1.15 2004/01/31 03:22:42 guy Exp $
+ * $Id: wsp_stat.c,v 1.16 2004/02/11 04:17:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "epan/packet_info.h"
#include "epan/epan.h"
-#include "menu.h"
+#include "tap_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"
#include "tap.h"