Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

main.h
1 /* main.h
2 * Global defines, etc.
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
23 #ifndef __MAIN_H__
24 #define __MAIN_H__
25
26 #include "cfile.h"
27 #include "capture_opts.h"
28
30 extern void get_wireshark_gtk_compiled_info(GString *str);
31 extern void get_gui_compiled_info(GString *str);
33 extern void get_wireshark_runtime_info(GString *str);
34
35
36 extern GtkWidget* wireless_tb;
37
38 void
39 airpcap_toolbar_encryption_cb(GtkWidget *entry, gpointer user_data);
40
46 extern void view_zoom_in_cb(GtkWidget *widget, gpointer data);
47
53 extern void view_zoom_out_cb(GtkWidget *widget, gpointer data);
54
60 extern void view_zoom_100_cb(GtkWidget *widget, gpointer data);
61
67 extern void selected_ptree_info_cb(GtkWidget *widget, gpointer data);
68
74 extern void selected_ptree_ref_cb(GtkWidget *widget, gpointer data);
75
77 typedef enum {
78 MATCH_SELECTED_REPLACE,
79 MATCH_SELECTED_AND,
80 MATCH_SELECTED_OR,
81 MATCH_SELECTED_NOT,
82 MATCH_SELECTED_AND_NOT,
83 MATCH_SELECTED_OR_NOT
84 } MATCH_SELECTED_E;
85
87 #define MATCH_SELECTED_MASK 0x0ff
88
90 #define MATCH_SELECTED_APPLY_NOW 0x100
91
93 #define MATCH_SELECTED_COPY_ONLY 0x200
94
101 extern void match_selected_ptree_cb(gpointer data, MATCH_SELECTED_E action);
102
104 typedef enum {
105 COPY_SELECTED_DESCRIPTION,
106 COPY_SELECTED_FIELDNAME,
107 COPY_SELECTED_VALUE
108 } COPY_SELECTED_E;
109
116 extern void copy_selected_plist_cb(GtkWidget *w _U_, gpointer data, COPY_SELECTED_E action);
117
124 extern void set_frame_reftime(gboolean set, frame_data *frame, gint row);
125
135 extern void colorize_selected_ptree_cb(GtkWidget *w, gpointer data, guint8 filt_nr);
136
143 extern void match_selected_plist_cb(gpointer data, MATCH_SELECTED_E action);
144
150 extern void file_quit_cmd_cb(GtkWidget *widget, gpointer data);
151
157 extern void file_print_cmd_cb(GtkWidget *widget, gpointer data);
158
164 extern void file_print_selected_cmd_cb(GtkWidget *widget _U_, gpointer data _U_);
165
171 extern void export_text_cmd_cb(GtkWidget *widget, gpointer data);
172
178 extern void export_ps_cmd_cb(GtkWidget *widget, gpointer data);
179
185 extern void export_psml_cmd_cb(GtkWidget *widget, gpointer data);
186
192 extern void export_pdml_cmd_cb(GtkWidget *widget, gpointer data);
193
199 extern void export_csv_cmd_cb(GtkWidget *widget, gpointer data);
200
206 extern void export_carrays_cmd_cb(GtkWidget *widget, gpointer data);
207
213 extern void export_json_cmd_cb(GtkWidget *widget, gpointer data);
214
220 extern void expand_tree_cb(GtkWidget *widget, gpointer data);
221
227 extern void collapse_tree_cb(GtkWidget *widget, gpointer data);
228
234 extern void expand_all_cb(GtkWidget *widget, gpointer data);
235
241 extern void apply_as_custom_column_cb(GtkWidget *widget, gpointer data);
242
248 extern void collapse_all_cb(GtkWidget *widget, gpointer data);
249
255 extern void resolve_name_cb(GtkWidget *widget, gpointer data);
256
258 typedef enum {
259 REFTIME_TOGGLE,
260 REFTIME_FIND_NEXT,
261 REFTIME_FIND_PREV
262 } REFTIME_ACTION_E;
263
270 extern void reftime_frame_cb(GtkWidget *widget, gpointer data, REFTIME_ACTION_E action);
271
278 extern void find_next_mark_cb(GtkWidget *widget, gpointer data, int action);
279
286 extern void find_prev_mark_cb(GtkWidget *widget, gpointer data, int action);
287
288 #if 0
289
290 extern void dfilter_combo_add_empty(void);
291 #endif
292
298 extern void main_update_for_unsaved_changes(capture_file *cf);
299
300 #ifdef HAVE_LIBPCAP
301
306 void main_auto_scroll_live_changed(gboolean auto_scroll_live_in);
307 #endif
308
310 extern void main_colorize_changed(gboolean packet_list_colorize);
311
316 extern gboolean main_do_quit(void);
317
319 extern void main_widgets_rearrange(void);
320
322 extern void main_widgets_show_or_hide(void);
323
324 /* Update main window items based on whether we have a packet history. */
325 extern void main_set_for_packet_history(gboolean back_history, gboolean forward_history);
326
335 extern gboolean main_filter_packets(capture_file *cf, const gchar *dftext,
336 gboolean force);
337
338 #ifdef _WIN32
339
340 extern void create_console(void);
341 #endif
342
344 extern void change_configuration_profile(const gchar *profile_name);
345
347 extern void main_fields_changed (void);
348
350 extern void redissect_packets(void);
351
353 extern GList *get_ip_address_list_from_packet_list_row(gpointer data);
354
355 extern GtkWidget *pkt_scrollw;
356
357 #endif /* __MAIN_H__ */
_frame_data
Definition: frame_data.h:53
_capture_file
Definition: cfile.h:58
capture_opts.h