summaryrefslogtreecommitdiff
path: root/epan/tvbparse.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-09-27 22:57:07 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-09-27 22:57:07 +0000
commit95d60cc7ead74e8252fb7af6888659d4f922cf25 (patch)
tree33e7065921742050155007675dedfc37be93a8be /epan/tvbparse.h
parentec0f669770875b390d3645a0e5e314517768664a (diff)
downloadwireshark-95d60cc7ead74e8252fb7af6888659d4f922cf25.tar.gz
in tvbparse:
- tvbparse_some now handles 0 items. - added accessors for a tt's offset and remaining length. in packet-xml: - min_len=0 for tvbparse_chars() is soon going to mean zero instead of 1 change the 0s to 1s. - attribute names can have ':' even if it's namespaces isn't managed yet. - split the xml grammar in more elements so It can be actually read by a human being. svn path=/trunk/; revision=16031
Diffstat (limited to 'epan/tvbparse.h')
-rw-r--r--epan/tvbparse.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbparse.h b/epan/tvbparse.h
index b2e982f17b..78a300740d 100644
--- a/epan/tvbparse.h
+++ b/epan/tvbparse.h
@@ -294,9 +294,6 @@ void tvbparse_shrink_token_cb(void* tvbparse_data,
-
-
-
/* initialize the parser (at every packet)
* tvb: what are we parsing?
* offset: from where
@@ -313,6 +310,9 @@ tvbparse_t* tvbparse_init(tvbuff_t* tvb,
/* reset the parser */
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 ill look for the wanted token at the current offset or after any given
* number of ignored tokens returning NULL if there's no match.