| 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
19extern "C" {
20#endif /* __cplusplus */
21
22typedef 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
37extern int commandline_early_options(int argc, char *argv[], commandline_usage_app_data_t* app_data);
38
39
40extern const struct ws_option* commandline_long_options(void);
41
42extern const char* commandline_optstring(void);
43
44extern void commandline_override_prefs(int argc, char *argv[], bool opt_reset);
45
46extern void commandline_other_options(capture_options* capture_opts, int argc, char *argv[], commandline_usage_app_data_t* app_data, bool opt_reset);
47
48extern void commandline_options_drop(const char *module_name, const char *pref_name);
49
50extern void commandline_options_reapply(void);
51
52extern void commandline_options_apply_extcap(void);
53
54extern void commandline_options_free(void);
55
56extern bool commandline_is_full_screen(void);
57
58extern char* commandline_get_cf_name(void);
59
60extern char* commandline_get_rfilter(void);
61
62extern char* commandline_get_dfilter(void);
63
64extern char* commandline_get_jfilter(void);
65
66extern search_direction commandline_get_jump_direction(void);
67
68extern uint32_t commandline_get_go_to_packet(void);
69
70#ifdef HAVE_LIBPCAP
71extern bool commandline_is_start_capture(void);
72
73extern bool commandline_is_quit_after_capture(void);
74
75extern char* commandline_get_first_capture_comment(void);
76
77extern int commandline_get_caps_queries(void);
78
79extern 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