aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index c3caf370c0..5db3020061 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -320,6 +320,16 @@ extern void heur_dissector_add(const char *name, heur_dissector_t dissector,
*/
extern void heur_dissector_delete(const char *name, heur_dissector_t dissector, const int proto);
+/** Enable/Disable a sub-dissector in a heuristic dissector list
+ * Call this in the prefs_reinit function of the sub-dissector.
+ *
+ * @param name the name of the "parent" protocol, e.g. "tcp"
+ * @param dissector the sub-dissector to be disabled/enabled
+ * @param proto the protocol id of the sub-dissector
+ * @param TRUE/FALSE to enable/disable the sub-dissector
+ */
+extern void heur_dissector_set_enabled(const char *name, heur_dissector_t dissector, const int proto, const gboolean enabled);
+
/* Register a dissector. */
extern void register_dissector(const char *name, dissector_t dissector,
const int proto);