Go to the source code of this file.
|
|
typedef void(* | commandline_usage_output_cb_t) (FILE *const output) |
| |
|
typedef struct commandline_usage_app_data | commandline_usage_app_data_t |
| |
Common command line handling between GUIs
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
◆ commandline_early_options()
Process early command-line options.
- Parameters
-
| argc | Number of command-line arguments. |
| argv | Array of command-line argument strings. |
| app_data | Application-specific data structure. |
- Returns
- Return code indicating success or failure.
◆ commandline_get_cf_name()
| char * commandline_get_cf_name |
( |
void |
| ) |
|
|
extern |
Get the current capture file name.
- Returns
- The name of the current capture file.
◆ commandline_get_dfilter()
| char * commandline_get_dfilter |
( |
void |
| ) |
|
|
extern |
Get the display filter from the commandline.
- Returns
- The current display filter.
◆ commandline_get_go_to_packet()
| uint32_t commandline_get_go_to_packet |
( |
void |
| ) |
|
|
extern |
Retrieves the packet number to which the user wants to jump.
- Returns
- The packet number.
◆ commandline_get_jfilter()
| char * commandline_get_jfilter |
( |
void |
| ) |
|
|
extern |
Get the current jump filter.
- Returns
- The jump filter as a string.
◆ commandline_get_jump_direction()
| search_direction commandline_get_jump_direction |
( |
void |
| ) |
|
|
extern |
Get the jump direction from command line.
- Returns
- The jump direction (forward or backward).
◆ commandline_get_rfilter()
| char * commandline_get_rfilter |
( |
void |
| ) |
|
|
extern |
Get the current read filter.
- Returns
- The read filter string.
◆ commandline_is_full_screen()
| bool commandline_is_full_screen |
( |
void |
| ) |
|
|
extern |
Checks if Wireshark is running in full screen mode.
- Returns
- true if Wireshark is in full screen mode, false otherwise.
◆ commandline_long_options()
| const struct ws_option * commandline_long_options |
( |
void |
| ) |
|
|
extern |
Retrieve the array of long options for command-line parsing.
- Returns
- Pointer to the array of long options.
◆ commandline_options_apply_extcap()
| void commandline_options_apply_extcap |
( |
void |
| ) |
|
|
extern |
Apply external capture options based on command line arguments.
This function processes user-provided options related to external captures, setting preferences accordingly. It skips processing if external captures are disabled.
◆ commandline_options_drop()
| void commandline_options_drop |
( |
const char * |
module_name, |
|
|
const char * |
pref_name |
|
) |
| |
|
extern |
Drop command line options for a specific module and preference.
- Parameters
-
| module_name | The name of the module. |
| pref_name | The name of the preference. |
◆ commandline_options_free()
| void commandline_options_free |
( |
void |
| ) |
|
|
extern |
Free command line options.
This function frees all allocated memory for command line options.
◆ commandline_options_reapply()
| void commandline_options_reapply |
( |
void |
| ) |
|
|
extern |
Reapply user-supplied command line options.
This function iterates through a list of user options and applies them using the prefs_set_pref function. It does not check the validity of these options again, assuming they were checked before being added to the list.
◆ commandline_optstring()
| const char * commandline_optstring |
( |
void |
| ) |
|
|
extern |
Returns a string containing all valid command-line options.
- Returns
- A pointer to a static string containing the option string.
◆ commandline_other_options()
Process other command-line options.
This function processes additional command-line options after epan_init() is called, handling various capture and display preferences.
- Parameters
-
| capture_opts | Capture options structure (unused). |
| argc | Number of command-line arguments. |
| argv | Array of command-line argument strings. |
| app_data | Application-specific data structure. |
| opt_reset | Flag indicating whether to reset options. |
◆ commandline_override_prefs()
| void commandline_override_prefs |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
bool |
opt_reset |
|
) |
| |
|
extern |
Override preferences from command line arguments.
- Parameters
-
| argc | Number of command line arguments. |
| argv | Array of command line argument strings. |
| opt_reset | Flag to reset the options parser. |