summaryrefslogtreecommitdiffstats
path: root/ui/dissect_opts.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /ui/dissect_opts.h
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/dissect_opts.h')
-rw-r--r--ui/dissect_opts.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/dissect_opts.h b/ui/dissect_opts.h
index 6c2c4446..d86aa0d2 100644
--- a/ui/dissect_opts.h
+++ b/ui/dissect_opts.h
@@ -46,9 +46,11 @@ extern "C" {
{"enable-protocol", ws_required_argument, NULL, LONGOPT_ENABLE_PROTOCOL }, \
{"only-protocols", ws_required_argument, NULL, LONGOPT_ONLY_PROTOCOLS }, \
{"disable-all-protocols", ws_no_argument, NULL, LONGOPT_DISABLE_ALL_PROTOCOLS }, \
+ {"read-filter", ws_required_argument, NULL, 'R' }, \
+ {"display-filter", ws_required_argument, NULL, 'Y' }, \
#define OPTSTRING_DISSECT_COMMON \
- "d:K:nN:t:u:"
+ "d:K:nN:R:t:u:Y:"
/** Capture options coming from user interface */
typedef struct dissect_options_tag {
@@ -64,20 +66,20 @@ extern dissect_options global_dissect_options;
/*
* Handle a command line option.
- * Returns TRUE if the option is valid, FALSE if not; an error message
+ * Returns true if the option is valid, false if not; an error message
* is reported with cmdarg_err() if it's not valid.
*/
-extern gboolean
+extern bool
dissect_opts_handle_opt(int opt, char *optarg_str_p);
/*
* Set up disabled protocols and enabled/disabled heuristic protocols
* as per specified command-line options.
*
- * Returns TRUE if all specified heuristic protocols exist, FALSE
+ * Returns true if all specified heuristic protocols exist, false
* otherwise.
*/
-extern gboolean
+extern bool
setup_enabled_and_disabled_protocols(void);
#ifdef __cplusplus