aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-05-18 16:46:35 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-05-18 16:46:35 +0000
commitb688f9154aacf9c2f30dc6c715bc115a05e9fcef (patch)
treec7421dbe7b62a052e59498a93dc1fcb5001f2f81 /epan/tvbuff.h
parent434334f24daeee4f64ecad6e315c702646c29d61 (diff)
Split tvb_get_bits64 into tvb_get_bits8 tvb_get_bits16 tvb_get_bits32 and tvb_get_bits64
and use them in proto_tree_add_bits_ret_val(). svn path=/trunk/; revision=21828
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 5c5cd7188e..6b06c210ee 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -337,7 +337,10 @@ 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);
+extern guint8 tvb_get_bits8(tvbuff_t *tvb, gint bit_offset, gint no_of_bits);
+extern guint16 tvb_get_bits16(tvbuff_t *tvb, gint bit_offset, gint no_of_bits, gboolean little_endian);
+extern guint32 tvb_get_bits32(tvbuff_t *tvb, gint bit_offset, gint no_of_bits, gboolean little_endian);
+extern guint64 tvb_get_bits64(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