aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-16 19:32:09 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-16 19:32:09 +0000
commit56f95db6b41619e12d78d2ce6522507084da2ab5 (patch)
tree43b7146ceacc0d72492f0457857fa37cfb56a822
parent842ddea77e063d74595fc339168079d985d6b48b (diff)
Export the "proto_tree_add_float" routines, and the routines to get IEEE
float and double values from a tvbuff. svn path=/trunk/; revision=12018
-rw-r--r--epan/libethereal.def7
-rw-r--r--plugins/plugin_api_list.c9
2 files changed, 16 insertions, 0 deletions
diff --git a/epan/libethereal.def b/epan/libethereal.def
index ef0331434a..e1b663da6b 100644
--- a/epan/libethereal.def
+++ b/epan/libethereal.def
@@ -380,6 +380,9 @@ proto_tree_add_double_hidden
proto_tree_add_ether
proto_tree_add_ether_format
proto_tree_add_ether_hidden
+proto_tree_add_float
+proto_tree_add_float_format
+proto_tree_add_float_hidden
proto_tree_add_int
proto_tree_add_int_format
proto_tree_add_int_hidden
@@ -473,10 +476,14 @@ tvb_get_letoh24
tvb_get_letoh64
tvb_get_letohl
tvb_get_letohs
+tvb_get_letohieee_double
+tvb_get_letohieee_float
tvb_get_nstringz
tvb_get_nstringz0
tvb_get_ntoh24
tvb_get_ntoh64
+tvb_get_ntohieee_double
+tvb_get_ntohieee_float
tvb_get_ntohl
tvb_get_ntohs
tvb_get_ptr
diff --git a/plugins/plugin_api_list.c b/plugins/plugin_api_list.c
index 2b140e255b..38ca90bfd8 100644
--- a/plugins/plugin_api_list.c
+++ b/plugins/plugin_api_list.c
@@ -483,3 +483,12 @@ guint16 crc16_ccitt_tvb(tvbuff_t *tvb, unsigned int len);
guint64 tvb_get_letoh64(tvbuff_t *tvb, gint offset);
guint64 tvb_get_ntoh64(tvbuff_t *tvb, gint offset);
+
+proto_item* proto_tree_add_float(proto_tree*, int, tvbuff_t*, gint, gint, float);
+proto_item* proto_tree_add_float_hidden(proto_tree*, int, tvbuff_t*, gint, gint, float);
+proto_item* proto_tree_add_float_format(proto_tree*, int, tvbuff_t*, gint, gint, float, const char*, ...);
+
+gfloat tvb_get_ntohieee_float(tvbuff_t*, gint offset);
+gdouble tvb_get_ntohieee_double(tvbuff_t*, gint offset);
+gfloat tvb_get_letohieee_float(tvbuff_t*, gint offset);
+gdouble tvb_get_letohieee_double(tvbuff_t*, gint offset);