Move the common parts of iface_lists.[ch] from ui/gtk/ to ui/. Leave the
[metze/wireshark/wip.git] / ui / gtk / gui_stat_menu.h
1 /* gui_stat_menu.h
2  * GTK+-specific menu definitions for use by stats
3  *
4  * $Id$
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  */
24
25 #ifndef __GTK_STAT_MENU_H__
26 #define __GTK_STAT_MENU_H__
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31
32 /** @file
33  * Add a new menu item for a stat.
34  */
35
36 /**
37  * XXX TODO: Rewrite me
38  * NOTE comments refere to old menus.c implementation.
39  *
40  * Same as register_stat_menu_item() but with optional stock item.
41  *
42  * @param name the menu label
43  *
44  * @param group the menu group this stat should be registered to
45  *
46  * @param stock_id the stock_id (icon) to show, or NULL
47  *
48  * @param callback gets called when the menu item is selected; it should do
49  * the work of creating the stat window.
50  *
51  * @param selected_packet_enabled gets called by set_menus_for_selected_packet();
52  * it's passed a pointer to the "frame_data" structure for the current frame,
53  * if any, and to the "epan_dissect_t" structure for that frame, if any, and
54  * should return TRUE if the stat will work now (which might depend on whether
55  * a frame is selected and, if one is, on the frame) and FALSE if not.
56  *
57  * @param selected_tree_row_enabled gets called by
58  * set_menus_for_selected_tree_row(); it's passed a pointer to the
59  * "field_info" structure for the currently selected field, if any,
60  * and should return TRUE if the stat will work now (which might depend on
61  * whether a tree row is selected and, if one is, on the tree row) and
62  * FALSE if not.
63  *
64  * @param callback_data data for callback function
65  */
66 void register_lua_menu_bar_menu_items(
67     const char   *gui_path,
68     const char   *name,
69     const gchar  *stock_id,
70     const char   *label,
71     const char   *accelerator,
72     const gchar  *tooltip,
73     gpointer     callback,
74     gpointer     callback_data,
75     gboolean     enabled,
76     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *, gpointer callback_data),
77     gboolean (*selected_tree_row_enabled)(field_info *, gpointer callback_data));
78
79 void eth_endpoints_cb(GtkAction *action, gpointer user_data);
80 void fc_endpoints_cb(GtkAction *action, gpointer user_data);
81 void fddi_endpoints_cb(GtkAction *action, gpointer user_data);
82 void ip_endpoints_cb(GtkAction *action, gpointer user_data);
83 void ipv6_endpoints_cb(GtkAction *action, gpointer user_data);
84 void ipx_endpoints_cb(GtkAction *action, gpointer user_data);
85 void jxta_conversation_cb(GtkAction *action, gpointer user_data);
86 void ncp_endpoints_cb(GtkAction *action, gpointer user_data);
87 void rsvp_endpoints_cb(GtkAction *action, gpointer user_data);
88 void sctp_conversation_cb(GtkAction *action, gpointer user_data);
89 void tcpip_conversation_cb(GtkAction *action, gpointer user_data);
90 void tr_conversation_cb(GtkAction *action, gpointer user_data);
91 void udpip_conversation_cb(GtkAction *action, gpointer user_data);
92 void usb_endpoints_cb(GtkAction *action, gpointer user_data);
93 void wlan_endpoints_cb(GtkAction *action, gpointer user_data);
94
95 void gtk_eth_hostlist_cb(GtkAction *action, gpointer user_data);
96 void gtk_fc_hostlist_cb(GtkAction *action, gpointer user_data);
97 void gtk_fddi_hostlist_cb(GtkAction *action, gpointer user_data);
98 void gtk_ip_hostlist_cb(GtkAction *action, gpointer user_data);
99 void gtk_ipv6_hostlist_cb(GtkAction *action, gpointer user_data);
100 void gtk_ipx_hostlist_cb(GtkAction *action, gpointer user_data);
101 void gtk_jxta_hostlist_cb(GtkAction *action, gpointer user_data);
102 void gtk_ncp_hostlist_cb(GtkAction *action, gpointer user_data);
103 void gtk_rsvp_hostlist_cb(GtkAction *action, gpointer user_data);
104 void gtk_sctp_hostlist_cb(GtkAction *action, gpointer user_data);
105 void gtk_tcpip_hostlist_cb(GtkAction *action, gpointer user_data);
106 void gtk_tr_hostlist_cb(GtkAction *action, gpointer user_data);
107 void gtk_udpip_hostlist_cb(GtkAction *action, gpointer user_data);
108 void gtk_usb_hostlist_cb(GtkAction *action, gpointer user_data);
109 void gtk_wlan_hostlist_cb(GtkAction *action, gpointer user_data);
110
111 void gtk_rpcstat_cb(GtkAction *action, gpointer user_data);
112 void bootp_dhcp_stat_cb(GtkAction *action, gpointer user_data);
113 void gtk_comparestat_cb(GtkAction *action, gpointer user_data);
114
115 void flow_graph_launch(GtkAction *action, gpointer user_data);
116
117 void iax2_analysis_cb(GtkAction *action, gpointer user_data);
118 void mtp3_stat_gtk_cb(GtkAction *action, gpointer user_data);
119 void mtp3_sum_gtk_sum_cb(GtkAction *action, gpointer user_data);
120 void rtp_analysis_cb(GtkAction *action, gpointer user_data);
121 void rtpstream_launch(GtkAction *action, gpointer user_data);
122 void sctp_analyse_start(GtkAction *action, gpointer user_data);
123 void sctp_chunk_counter_cb(GtkAction *action, gpointer user_data);
124 void sctp_stat_start(GtkAction *action, gpointer user_data);
125
126 void gui_iostat_cb(GtkAction *action, gpointer user_data);
127
128 void voip_calls_launch(GtkAction *action, gpointer user_data);
129
130 void ansi_a_stat_gtk_bsmap_cb(GtkAction *action, gpointer user_data);
131 void ansi_a_stat_gtk_dtap_cb(GtkAction *action, gpointer user_data);
132 void ansi_map_stat_gtk_cb(GtkAction *action, gpointer user_data);
133
134 void camel_counter_cb(GtkAction *action, gpointer user_data);
135 void h225_counter_cb(GtkAction *action, gpointer user_data);
136 void gsm_a_stat_gtk_bssmap_cb(GtkAction *action, gpointer user_data);
137 void gsm_a_stat_gtk_dtap_mm_cb(GtkAction *action, gpointer user_data);
138 void gsm_a_stat_gtk_dtap_rr_cb(GtkAction *action, gpointer user_data);
139 void gsm_a_stat_gtk_dtap_cc_cb(GtkAction *action, gpointer user_data);
140 void gsm_a_stat_gtk_dtap_gmm_cb(GtkAction *action, gpointer user_data);
141 void gsm_a_stat_gtk_dtap_sms_cb(GtkAction *action, gpointer user_data);
142 void gsm_a_stat_gtk_dtap_sm_cb(GtkAction *action, gpointer user_data);
143 void gsm_a_stat_gtk_dtap_ss_cb(GtkAction *action, gpointer user_data);
144 void gsm_a_stat_gtk_dtap_tp_cb(GtkAction *action, gpointer user_data);
145 void gsm_a_stat_gtk_sacch_rr_cb(GtkAction *action, gpointer user_data);
146 void mac_lte_stat_cb(GtkAction *action, gpointer user_data);
147 void rlc_lte_stat_cb(GtkAction *action, gpointer user_data);
148 void sipstat_cb(GtkAction *action, gpointer user_data);
149 void wsp_stat_cb(GtkAction *action, gpointer user_data);
150
151 void gsm_map_stat_gtk_cb(GtkAction *action, gpointer user_data);
152 void gsm_map_stat_gtk_sum_cb(GtkAction *action, gpointer user_data);
153
154 void afp_srt_stat_cb(GtkAction *action, gpointer user_data);
155 void camel_srt_cb(GtkAction *action, gpointer user_data);
156 void gtk_dcerpcstat_cb(GtkAction *action, gpointer user_data);
157 void diameter_srt_cb(GtkAction *action, gpointer user_data);
158 void fc_srt_cb(GtkAction *action, gpointer user_data);
159 void gtp_srt_cb(GtkAction *action, gpointer user_data);
160 void h225_srt_cb(GtkAction *action, gpointer user_data);
161 void ldap_srt_cb(GtkAction *action, gpointer user_data);
162 void megaco_srt_cb(GtkAction *action, gpointer user_data);
163 void mgcp_srt_cb(GtkAction *action, gpointer user_data);
164 void ncp_srt_cb(GtkAction *action, gpointer user_data);
165 void radius_srt_cb(GtkAction *action, gpointer user_data);
166 void scsi_srt_cb(GtkAction *action, gpointer user_data);
167 void smb2_srt_cb(GtkAction *action, gpointer user_data);
168 void smb_srt_cb(GtkAction *action, gpointer user_data);
169 void rlc_lte_graph_cb(GtkAction *action, gpointer user_data);
170
171 void gtk_stats_tree_cb(GtkAction *action, gpointer user_data);
172
173 void tcp_graph_cb(GtkAction *action, gpointer user_data);
174 gboolean tcp_graph_selected_packet_enabled(frame_data *current_frame, epan_dissect_t *edt, gpointer callback_data _U_);
175
176 void gtk_rpcprogs_cb(GtkWidget *w, gpointer data);
177 void mcaststream_launch(GtkAction *action, gpointer user_data);
178 void wlanstat_launch(GtkAction *action, gpointer user_data);
179
180 /** Adds a callback to be executed when the menubar is ready to have menus and items added to it */
181 void ws_add_build_menubar_items_callback(gpointer callback);
182
183 #ifdef __cplusplus
184 }
185 #endif /* __cplusplus */
186
187 #endif /* __GTK_STAT_MENU_H__ */