Wireshark  4.3.0
The Wireshark network protocol analyzer
commandline.h
Go to the documentation of this file.
1 
12 #ifndef __COMMANDLINE_H__
13 #define __COMMANDLINE_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18 
19 extern void commandline_print_usage(gboolean for_help_option);
20 
21 extern void commandline_early_options(int argc, char *argv[]);
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 
32  /*
33  * We currently don't support this as a way to add file comments
34  * to an existing capture file in Wireshark; we only support it
35  * for adding comments to live captures.
36  */
37  GPtrArray *capture_comments;
38 #endif
39  e_prefs *prefs_p;
40  search_direction jump_backwards;
41  guint32 go_to_packet;
42  gchar* jfilter;
43  gchar* cf_name;
44  gchar* rfilter;
45  gchar* dfilter;
46  gboolean full_screen;
47  GSList *user_opts;
48 
50 
51 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
52 
53 extern void commandline_options_drop(const char *module_name, const char *pref_name);
54 
55 extern void commandline_options_reapply(void);
56 
57 extern void commandline_options_free(void);
58 
59 extern commandline_param_info_t global_commandline_info;
60 
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64 
65 #endif /* __COMMANDLINE_H__ */
Definition: prefs.h:137
Definition: commandline.h:25