summaryrefslogtreecommitdiff
path: root/epan/packet.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-10-30 04:06:54 +0000
committerMichael Mann <mmann78@netscape.net>2013-10-30 04:06:54 +0000
commit694bc6b763f27ca963d6d888f3a5a204c78570cf (patch)
tree39ec73dda18cef0623f1d758db66369f2a6bb42c /epan/packet.h
parenta3648730a6c8f5684f2c3708311c2c495b8422e9 (diff)
downloadwireshark-694bc6b763f27ca963d6d888f3a5a204c78570cf.tar.gz
Allow string-based dissector tables to pass data between dissectors.
svn path=/trunk/; revision=52980
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index fd75b4ccbf..96d7d85eff 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -239,6 +239,12 @@ WS_DLL_PUBLIC void dissector_reset_string(const char *name, const gchar *pattern
WS_DLL_PUBLIC gboolean dissector_try_string(dissector_table_t sub_dissectors,
const gchar *string, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+/* Look for a given string in a given dissector table and, if found, call
+ the dissector with the arguments supplied, and return TRUE, otherwise
+ return FALSE. */
+WS_DLL_PUBLIC gboolean dissector_try_string_new(dissector_table_t sub_dissectors,
+ const gchar *string, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data);
+
/* Look for a given value in a given string dissector table and, if found,
return the dissector handle for that value. */
WS_DLL_PUBLIC dissector_handle_t dissector_get_string_handle(