Qt: add fullscreen feature.
[metze/wireshark/wip.git] / ui / commandline.h
1 /* commandline.h
2  * Common command line handling between GUIs
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 __COMMANDLINE_H__
24 #define __COMMANDLINE_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29
30 extern void commandline_print_usage(gboolean for_help_option);
31
32 extern void commandline_early_options(int argc, char *argv[],
33     GString *comp_info_str, GString *runtime_info_str);
34
35 /* Command-line options that don't have direct API calls to handle the data */
36 typedef struct commandline_param_info
37 {
38 #ifdef HAVE_LIBPCAP
39     gboolean list_link_layer_types;
40     gboolean start_capture;
41     gboolean quit_after_cap;
42 #endif
43     e_prefs *prefs_p;
44     search_direction jump_backwards;
45     guint32 go_to_packet;
46     gchar* jfilter;
47     gchar* cf_name;
48     gchar* rfilter;
49     gchar* dfilter;
50     ts_type time_format;
51     GSList *disable_protocol_slist;
52     GSList *enable_heur_slist;
53     GSList *disable_heur_slist;
54     gboolean full_screen;
55
56 } commandline_param_info_t;
57
58 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
59
60 extern commandline_param_info_t global_commandline_info;
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65
66 #endif /* __COMMANDLINE_H__ */
67
68 /*
69  * Editor modelines
70  *
71  * Local Variables:
72  * c-basic-offset: 4
73  * tab-width: 8
74  * indent-tabs-mode: nil
75  * End:
76  *
77  * ex: set shiftwidth=4 tabstop=8 expandtab:
78  * :indentSize=4:tabSize=8:noTabs=true:
79  */