summaryrefslogtreecommitdiff
path: root/epan/tvbparse.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-09 13:05:32 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-09 13:05:32 +0000
commit0bb1b874ec85463c8671e7d2b5e9041c0f33bb07 (patch)
treea282d9d8967008f4d0cfc86b56ae5bacc587fa66 /epan/tvbparse.h
parent118e05db0bb080813a919dadcf2b1de9aa711fb8 (diff)
downloadwireshark-0bb1b874ec85463c8671e7d2b5e9041c0f33bb07.tar.gz
Add heuristic dissection of XML
svn path=/trunk/; revision=17228
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