summaryrefslogtreecommitdiffstats
path: root/ui/dissect_opts.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /ui/dissect_opts.h
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-c4e8a3222648fcf22ca207f1815ebbf7cd144eeb.tar.xz
wireshark-c4e8a3222648fcf22ca207f1815ebbf7cd144eeb.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
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