| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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#include "ui/capture_opts.h"
17
18#ifdef __cplusplus
19 extern "C" {
20#endif /* __cplusplus */
21
22 typedef void (*commandline_usage_output_cb_t)(FILE* const output);
23
24 typedef struct commandline_usage_app_data
25{
26 const char* item_name;
27 const char* console_name;
28 const char* help_header;
29#ifdef HAVE_LIBPCAP
30 commandline_usage_output_cb_t capture_interface_options;
31 commandline_usage_output_cb_t list_interface_options;
32 commandline_usage_output_cb_t capture_output_options;
33#endif
34
35} commandline_usage_app_data_t;
36
37 extern int commandline_early_options(int argc, char *argv[], commandline_usage_app_data_t* app_data);
38
39
40 extern const struct ws_option* commandline_long_options(void);
41
42 extern const char* commandline_optstring(void);
43
44 extern void commandline_override_prefs(int argc, char *argv[], bool opt_reset);
45
46 extern void commandline_other_options(capture_options* capture_opts, int argc, char *argv[], commandline_usage_app_data_t* app_data, bool opt_reset);
47
48 extern void commandline_options_drop(const char *module_name, const char *pref_name);
49
50 extern void commandline_options_reapply(void);
51
52 extern void commandline_options_apply_extcap(void);
53
54 extern void commandline_options_free(void);
55
56 extern bool commandline_is_full_screen(void);
57
58 extern char* commandline_get_cf_name(void);
59
60 extern char* commandline_get_rfilter(void);
61
62 extern char* commandline_get_dfilter(void);
63
64 extern char* commandline_get_jfilter(void);
65
66 extern search_direction commandline_get_jump_direction(void);
67
68 extern uint32_t commandline_get_go_to_packet(void);
69
70#ifdef HAVE_LIBPCAP
71 extern bool commandline_is_start_capture(void);
72
73 extern bool commandline_is_quit_after_capture(void);
74
75 extern char* commandline_get_first_capture_comment(void);
76
77 extern int commandline_get_caps_queries(void);
78
79 extern GPtrArray* commandline_get_capture_comments(void);
80
81#endif
82
83#ifdef __cplusplus
84}
85#endif /* __cplusplus */
86
87#endif /* __COMMANDLINE_H__ */
capture_opts.h
cfile.h
capture_options_tag
Definition capture_opts.h:236
commandline_usage_app_data
Definition commandline.h:25
ws_option
Structure representing a long-form command-line option.
Definition ws_getopt.h:64