diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-04-28 12:13:25 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-04-28 12:13:25 +0000 |
commit | 43bb2aea51286c1b9c2d07e87f9a70374a849323 (patch) | |
tree | 519aeae421e1cf955875c5c2345952c41ec9eee9 /epan/tvbuff.h | |
parent | 3094ff6c619ec5b0b498d9672ebc86c88258c0f9 (diff) |
Add:
proto_tree_add_bits_ret_val()
tvb_get_bits()
And modify
proto_tree_add_bits() not to return a value.
little endian is not yet implemented.
svn path=/trunk/; revision=21607
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index e5b82508ec..4b75c4e647 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -336,6 +336,8 @@ extern void tvb_get_ntohguid(tvbuff_t *tvb, gint offset, e_guid_t *guid); extern void tvb_get_letohguid(tvbuff_t *tvb, gint offset, e_guid_t *guid); extern void tvb_get_guid(tvbuff_t *tvb, gint offset, e_guid_t *guid, gboolean little_endian); +/* Fetch a specified number of bits from bit offset in a tvb */ +extern guint64 tvb_get_bits(tvbuff_t *tvb, gint bit_offset, gint no_of_bits, gboolean little_endian); /** Returns target for convenience. Does not suffer from possible * expense of tvb_get_ptr(), since this routine is smart enough |