diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-12-09 17:41:16 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-12-09 17:41:16 +0000 |
commit | 7912ecaaecc511479205eb2dbe38bf8b08cd81da (patch) | |
tree | d8be6b7a292ac5589d0206d140f5a92fb8fa7776 /epan/tvbuff.h | |
parent | 1659d0c6231af7b1473c65ccc4425c1858bc80c9 (diff) |
Move the routines tvb_skip_wsp() to tvbuff.c
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23818 f5534014-38df-0310-8fa8-9805f1628bb7
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. */ |