diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-16 19:33:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-16 19:33:18 +0000 |
commit | 92dcbdc1922c613ac0705760ff63aa5905784cfe (patch) | |
tree | 7a05e6a1a5aafd444dd4282d34c3f531e5fcbf2c | |
parent | 56f95db6b41619e12d78d2ce6522507084da2ab5 (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=12019
-rw-r--r-- | plugins/Xass-list | 4 | ||||
-rw-r--r-- | plugins/Xplugin_api.c | 7 | ||||
-rw-r--r-- | plugins/Xplugin_api.h | 7 | ||||
-rw-r--r-- | plugins/Xplugin_api_decls.h | 7 | ||||
-rw-r--r-- | plugins/Xplugin_table.h | 7 |
5 files changed, 31 insertions, 1 deletions
diff --git a/plugins/Xass-list b/plugins/Xass-list index 76b15d1ad5..de8b803894 100644 --- a/plugins/Xass-list +++ b/plugins/Xass-list @@ -86,4 +86,6 @@ rpc_prog_hf, rpc_roundup, dissect_rpc_bool, dissect_rpc_string, dissect_rpc_opaque_data, dissect_rpc_data, dissect_rpc_bytes, dissect_rpc_list, dissect_rpc_array, dissect_rpc_uint32, dissect_rpc_uint64, dissect_rpc_indir_call, dissect_rpc_indir_reply, crc16_ccitt_tvb, -tvb_get_letoh64, tvb_get_ntoh64, +tvb_get_letoh64, tvb_get_ntoh64, proto_tree_add_float, proto_tree_add_float_hidden, +proto_tree_add_float_format, tvb_get_ntohieee_float, tvb_get_ntohieee_double, +tvb_get_letohieee_float, tvb_get_letohieee_double, diff --git a/plugins/Xplugin_api.c b/plugins/Xplugin_api.c index db50b9caf5..2cfc073a8e 100644 --- a/plugins/Xplugin_api.c +++ b/plugins/Xplugin_api.c @@ -294,3 +294,10 @@ p_dissect_rpc_indir_reply = pat->p_dissect_rpc_indir_reply; p_crc16_ccitt_tvb = pat->p_crc16_ccitt_tvb; p_tvb_get_letoh64 = pat->p_tvb_get_letoh64; p_tvb_get_ntoh64 = pat->p_tvb_get_ntoh64; +p_proto_tree_add_float = pat->p_proto_tree_add_float; +p_proto_tree_add_float_hidden = pat->p_proto_tree_add_float_hidden; +p_proto_tree_add_float_format = pat->p_proto_tree_add_float_format; +p_tvb_get_ntohieee_float = pat->p_tvb_get_ntohieee_float; +p_tvb_get_ntohieee_double = pat->p_tvb_get_ntohieee_double; +p_tvb_get_letohieee_float = pat->p_tvb_get_letohieee_float; +p_tvb_get_letohieee_double = pat->p_tvb_get_letohieee_double; diff --git a/plugins/Xplugin_api.h b/plugins/Xplugin_api.h index a627927f79..abc995a691 100644 --- a/plugins/Xplugin_api.h +++ b/plugins/Xplugin_api.h @@ -294,3 +294,10 @@ #define crc16_ccitt_tvb (*p_crc16_ccitt_tvb) #define tvb_get_letoh64 (*p_tvb_get_letoh64) #define tvb_get_ntoh64 (*p_tvb_get_ntoh64) +#define proto_tree_add_float (*p_proto_tree_add_float) +#define proto_tree_add_float_hidden (*p_proto_tree_add_float_hidden) +#define proto_tree_add_float_format (*p_proto_tree_add_float_format) +#define tvb_get_ntohieee_float (*p_tvb_get_ntohieee_float) +#define tvb_get_ntohieee_double (*p_tvb_get_ntohieee_double) +#define tvb_get_letohieee_float (*p_tvb_get_letohieee_float) +#define tvb_get_letohieee_double (*p_tvb_get_letohieee_double) diff --git a/plugins/Xplugin_api_decls.h b/plugins/Xplugin_api_decls.h index 46725b1ce6..d47bbe43b0 100644 --- a/plugins/Xplugin_api_decls.h +++ b/plugins/Xplugin_api_decls.h @@ -294,3 +294,10 @@ addr_dissect_rpc_indir_reply p_dissect_rpc_indir_reply; addr_crc16_ccitt_tvb p_crc16_ccitt_tvb; addr_tvb_get_letoh64 p_tvb_get_letoh64; addr_tvb_get_ntoh64 p_tvb_get_ntoh64; +addr_proto_tree_add_float p_proto_tree_add_float; +addr_proto_tree_add_float_hidden p_proto_tree_add_float_hidden; +addr_proto_tree_add_float_format p_proto_tree_add_float_format; +addr_tvb_get_ntohieee_float p_tvb_get_ntohieee_float; +addr_tvb_get_ntohieee_double p_tvb_get_ntohieee_double; +addr_tvb_get_letohieee_float p_tvb_get_letohieee_float; +addr_tvb_get_letohieee_double p_tvb_get_letohieee_double; diff --git a/plugins/Xplugin_table.h b/plugins/Xplugin_table.h index dc108d9fb2..2fcc782d90 100644 --- a/plugins/Xplugin_table.h +++ b/plugins/Xplugin_table.h @@ -294,3 +294,10 @@ typedef int (*addr_dissect_rpc_indir_reply) (tvbuff_t *, packet_info *, proto_tr typedef guint16 (*addr_crc16_ccitt_tvb) (tvbuff_t *, unsigned int); typedef guint64 (*addr_tvb_get_letoh64) (tvbuff_t *, gint); typedef guint64 (*addr_tvb_get_ntoh64) (tvbuff_t *, gint); +typedef proto_item *(*addr_proto_tree_add_float) (proto_tree *, int, tvbuff_t *, gint, gint, float); +typedef proto_item *(*addr_proto_tree_add_float_hidden) (proto_tree *, int, tvbuff_t *, gint, gint, float); +typedef proto_item *(*addr_proto_tree_add_float_format) (proto_tree *, int, tvbuff_t *, gint, gint, float, const char *, ...); +typedef gfloat (*addr_tvb_get_ntohieee_float) (tvbuff_t *, gint); +typedef gdouble (*addr_tvb_get_ntohieee_double) (tvbuff_t *, gint); +typedef gfloat (*addr_tvb_get_letohieee_float) (tvbuff_t *, gint); +typedef gdouble (*addr_tvb_get_letohieee_double) (tvbuff_t *, gint); |