aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcapng_module.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-02-04 04:24:42 -0800
committerGuy Harris <gharris@sonic.net>2021-02-04 21:37:53 +0000
commit712490f214cbc170902f48500f5c832b2bce5d4f (patch)
tree9f6225628ceb701b57f0bd06cf8d9eb8b0a806c8 /wiretap/pcapng_module.h
parent66d84fc5672b9f08ceb4ea5645b2e0ce08d42e8b (diff)
pcapng: have common code to handle otherwise-unhandled options.
That code looks for a plugin handler if there's no built-in handler. Change the handler signature so that it can add an option.
Diffstat (limited to 'wiretap/pcapng_module.h')
-rw-r--r--wiretap/pcapng_module.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/wiretap/pcapng_module.h b/wiretap/pcapng_module.h
index 483082226d..13a38d7de8 100644
--- a/wiretap/pcapng_module.h
+++ b/wiretap/pcapng_module.h
@@ -66,7 +66,11 @@ void register_pcapng_block_type_handler(guint block_type, block_reader reader,
/*
* Handler routine for pcapng option type.
*/
-typedef gboolean (*option_handler_fn)(gboolean, guint, guint8 *, int *, gchar **);
+typedef gboolean (*option_handler_fn)(wtap_block_t wblock,
+ gboolean byte_swapped,
+ guint option_length,
+ guint8 *option_content,
+ int *err, gchar **err_info);
/*
* Register a handler for a pcapng option code for a particular block