3 * Common command line handling between GUIs
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __COMMANDLINE_H__
13 #define __COMMANDLINE_H__
15 #include "cfile.h" /* For search_direction */
19 #endif /* __cplusplus */
21 extern void commandline_print_usage(bool for_help_option
);
23 extern void commandline_early_options(int argc
, char *argv
[]);
25 /* Command-line options that don't have direct API calls to handle the data */
26 typedef struct commandline_param_info
29 bool list_link_layer_types
;
30 bool list_timestamp_types
;
35 * We currently don't support this as a way to add file comments
36 * to an existing capture file in Wireshark; we only support it
37 * for adding comments to live captures.
39 GPtrArray
*capture_comments
;
42 search_direction jump_backwards
;
43 uint32_t go_to_packet
;
51 } commandline_param_info_t
;
53 extern void commandline_override_prefs(int argc
, char *argv
[], bool opt_reset
);
55 extern void commandline_other_options(int argc
, char *argv
[], bool opt_reset
);
57 extern void commandline_options_drop(const char *module_name
, const char *pref_name
);
59 extern void commandline_options_reapply(void);
61 extern void commandline_options_apply_extcap(void);
63 extern void commandline_options_free(void);
65 extern commandline_param_info_t global_commandline_info
;
69 #endif /* __cplusplus */
71 #endif /* __COMMANDLINE_H__ */