2 * Common command line handling between GUIs
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0+*/
10 #ifndef __COMMANDLINE_H__
11 #define __COMMANDLINE_H__
15 #endif /* __cplusplus */
17 extern void commandline_print_usage(gboolean for_help_option);
19 extern void commandline_early_options(int argc, char *argv[],
20 GString *comp_info_str, GString *runtime_info_str);
22 /* Command-line options that don't have direct API calls to handle the data */
23 typedef struct commandline_param_info
26 gboolean list_link_layer_types;
27 gboolean list_timestamp_types;
28 gboolean start_capture;
29 gboolean quit_after_cap;
32 search_direction jump_backwards;
40 } commandline_param_info_t;
42 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
44 extern commandline_param_info_t global_commandline_info;
48 #endif /* __cplusplus */
50 #endif /* __COMMANDLINE_H__ */
58 * indent-tabs-mode: nil
61 * ex: set shiftwidth=4 tabstop=8 expandtab:
62 * :indentSize=4:tabSize=8:noTabs=true: