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 #include "cfile.h" /* For search_direction */
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20 
21 extern void commandline_print_usage(bool for_help_option);
22 
23 extern void commandline_early_options(int argc, char *argv[]);
24 
25 /* Command-line options that don't have direct API calls to handle the data */
26 typedef struct commandline_param_info
27 {
28 #ifdef HAVE_LIBPCAP
29  bool list_link_layer_types;
30  bool list_timestamp_types;
31  bool start_capture;
32  bool quit_after_cap;
33 
34  /*
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.
38  */
39  GPtrArray *capture_comments;
40 #endif
41  e_prefs *prefs_p;
42  search_direction jump_backwards;
43  uint32_t go_to_packet;
44  char* jfilter;
45  char* cf_name;
46  char* rfilter;
47  char* dfilter;
48  bool full_screen;
49  GSList *user_opts;
50 
52 
53 extern void commandline_override_prefs(int argc, char *argv[], bool opt_reset);
54 
55 extern void commandline_other_options(int argc, char *argv[], bool opt_reset);
56 
57 extern void commandline_options_drop(const char *module_name, const char *pref_name);
58 
59 extern void commandline_options_reapply(void);
60 
61 extern void commandline_options_free(void);
62 
63 extern commandline_param_info_t global_commandline_info;
64 
65 #ifdef __cplusplus
66 }
67 #endif /* __cplusplus */
68 
69 #endif /* __COMMANDLINE_H__ */
Definition: prefs.h:147
Definition: commandline.h:27