ui: use SPDX identifiers.
[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  * SPDX-License-Identifier: GPL-2.0+*/
9
10 #ifndef __COMMANDLINE_H__
11 #define __COMMANDLINE_H__
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
16
17 extern void commandline_print_usage(gboolean for_help_option);
18
19 extern void commandline_early_options(int argc, char *argv[],
20     GString *comp_info_str, GString *runtime_info_str);
21
22 /* Command-line options that don't have direct API calls to handle the data */
23 typedef struct commandline_param_info
24 {
25 #ifdef HAVE_LIBPCAP
26     gboolean list_link_layer_types;
27     gboolean list_timestamp_types;
28     gboolean start_capture;
29     gboolean quit_after_cap;
30 #endif
31     e_prefs *prefs_p;
32     search_direction jump_backwards;
33     guint32 go_to_packet;
34     gchar* jfilter;
35     gchar* cf_name;
36     gchar* rfilter;
37     gchar* dfilter;
38     gboolean full_screen;
39
40 } commandline_param_info_t;
41
42 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
43
44 extern commandline_param_info_t global_commandline_info;
45
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49
50 #endif /* __COMMANDLINE_H__ */
51
52 /*
53  * Editor modelines
54  *
55  * Local Variables:
56  * c-basic-offset: 4
57  * tab-width: 8
58  * indent-tabs-mode: nil
59  * End:
60  *
61  * ex: set shiftwidth=4 tabstop=8 expandtab:
62  * :indentSize=4:tabSize=8:noTabs=true:
63  */