aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcapng_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/pcapng_module.h')
-rw-r--r--wiretap/pcapng_module.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/wiretap/pcapng_module.h b/wiretap/pcapng_module.h
index 226a8dd7b1..ef5701678b 100644
--- a/wiretap/pcapng_module.h
+++ b/wiretap/pcapng_module.h
@@ -36,5 +36,18 @@ WS_DLL_PUBLIC
void register_pcapng_block_type_handler(guint block_type, block_reader read,
block_writer write);
+/*
+ * Handler routine for pcap-ng option type.
+ */
+typedef gboolean (*option_handler)(gboolean, guint, guint8 *, int *, gchar **);
+
+/*
+ * Register a handler for a pcap-ng option code for a particular block
+ * type.
+ */
+WS_DLL_PUBLIC
+void register_pcapng_option_handler(guint block_type, guint option_code,
+ option_handler handle);
+
#endif /* __PCAP_MODULE_H__ */