aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbparse.h
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-09 13:05:32 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-09 13:05:32 +0000
commit1830974f2c97ec4e9fc423dcf20ad2d745663af5 (patch)
treea282d9d8967008f4d0cfc86b56ae5bacc587fa66 /epan/tvbparse.h
parente19561acbbc5df1d9b130dbf72d0846c21d40553 (diff)
Add heuristic dissection of XML
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17228 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/tvbparse.h')
-rw-r--r--epan/tvbparse.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/epan/tvbparse.h b/epan/tvbparse.h
index 742363a0aa..2afc4eecfe 100644
--- a/epan/tvbparse.h
+++ b/epan/tvbparse.h
@@ -440,8 +440,19 @@ gboolean tvbparse_reset(tvbparse_t* tt, int offset, int len);
guint tvbparse_curr_offset(tvbparse_t* tt);
guint tvbparse_len_left(tvbparse_t* tt);
+
+
+/*
+ * This will look for the wanted token at the current offset or after any given
+ * number of ignored tokens returning FALSE if there's no match or TRUE if there
+ * is a match.
+ * The parser will be left in its original state and no callbacks will be called.
+ */
+gboolean tvbparse_peek(tvbparse_t* tt,
+ const tvbparse_wanted_t* wanted);
+
/*
- * This ill look for the wanted token at the current offset or after any given
+ * This will look for the wanted token at the current offset or after any given
* number of ignored tokens returning NULL if there's no match.
* if there is a match it will set the offset of the current parser after
* the end of the token