diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-12-09 17:41:16 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-12-09 17:41:16 +0000 |
commit | e5f48395f18dcdfe5a65a0163b750179aad64b33 (patch) | |
tree | d8be6b7a292ac5589d0206d140f5a92fb8fa7776 /epan/tvbuff.h | |
parent | 006d1c446e03af37c260693076d501b6fb5aa887 (diff) | |
download | wireshark-e5f48395f18dcdfe5a65a0163b750179aad64b33.tar.gz wireshark-e5f48395f18dcdfe5a65a0163b750179aad64b33.tar.bz2 wireshark-e5f48395f18dcdfe5a65a0163b750179aad64b33.zip |
Move the routines tvb_skip_wsp() to tvbuff.c
svn path=/trunk/; revision=23818
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index b8f7e62206..df4da31c85 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -557,6 +557,27 @@ extern gint tvb_find_line_end_unquoted(tvbuff_t *tvb, gint offset, int len, gint *next_offset); /** + * Copied from the mgcp dissector. (This function should be moved to /epan ) + * tvb_skip_wsp - Returns the position in tvb of the first non-whitespace + * character following offset or offset + maxlength -1 whichever + * is smaller. + * + * Parameters: + * tvb - The tvbuff in which we are skipping whitespace. + * offset - The offset in tvb from which we begin trying to skip whitespace. + * maxlength - The maximum distance from offset that we may try to skip + * whitespace. + * + * Returns: The position in tvb of the first non-whitespace + * character following offset or offset + maxlength -1 whichever + * is smaller. + */ + +extern gint tvb_skip_wsp(tvbuff_t* tvb, gint offset, gint maxlength); + +extern gint tvb_skip_wsp_return(tvbuff_t* tvb, gint offset); + +/** * Call strncmp after checking if enough chars left, returning 0 if * it returns 0 (meaning "equal") and -1 otherwise, otherwise return -1. */ |