From 43bb2aea51286c1b9c2d07e87f9a70374a849323 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Sat, 28 Apr 2007 12:13:25 +0000 Subject: 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 --- epan/tvbuff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/tvbuff.h') 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 -- cgit v1.2.3