Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

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

- File List
- File Members

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