summaryrefslogtreecommitdiff
path: root/epan/packet.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-08-07 21:26:07 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-08-07 21:26:07 +0000
commit7475efa0f6a3703c137ff3f0709fc4458163c13a (patch)
tree46f0bb05870371858b157ef564560239d7eb36da /epan/packet.h
parentbc50d5ceb72d715c492f054b655b8657d84285ca (diff)
downloadwireshark-7475efa0f6a3703c137ff3f0709fc4458163c13a.tar.gz
from: Mike Duigou
Adds a heur_dissector_delete() function to allow heuristic dissectors to be dynamically disabled based upon, for example, preference settings. http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1697 svn path=/trunk/; revision=22463
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 353069879d..edaaacf66c 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -270,6 +270,15 @@ extern gboolean dissector_try_heuristic(heur_dissector_list_t sub_dissectors,
extern void heur_dissector_add(const char *name, heur_dissector_t dissector,
int proto);
+/** Remove a sub-dissector from 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 unregistered
+ * @param proto the protocol id of the sub-dissector
+ */
+extern void heur_dissector_delete(const char *name, heur_dissector_t dissector, int proto);
+
/* Register a dissector. */
extern void register_dissector(const char *name, dissector_t dissector,
int proto);