From 5b971ec13b7f0282b9aa81556ba74ab3adb37d02 Mon Sep 17 00:00:00 2001 From: lego Date: Tue, 27 Sep 2005 22:57:07 +0000 Subject: 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16031 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/tvbparse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/tvbparse.h') 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. -- cgit v1.2.3