diff options
author | Michael Mann <mmann78@netscape.net> | 2016-12-12 13:22:05 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-13 22:56:36 +0000 |
commit | a869ec6f55160622a90bc437517dee91d57f85d5 (patch) | |
tree | ea55cf7ba5f820af87e01d2a28d38d6b6ebe547e /epan/proto.h | |
parent | e150235ef14cf6a9ada7d74c534e4aee469f3ac5 (diff) | |
download | wireshark-a869ec6f55160622a90bc437517dee91d57f85d5.tar.gz |
Adjust proto_tree_add_[float|double]_format_value calls to use unit string
Several calls to proto_tree_add_[float|double]_xxx could be better served
using BASE_UNIT_STRING with a "unit string" in hf_ field.
Added a few more "common" unit string values to unit_strings.[ch]
Change-Id: Id0da7b579403898d20c2667d6c4abcd59d5a48d4
Reviewed-on: https://code.wireshark.org/review/19241
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index 53f8dca61f..ac38a5d4dd 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -2963,6 +2963,9 @@ proto_custom_set(proto_tree* tree, GSList *field_id, #define proto_tree_add_uint(tree, hfinfo, tvb, start, length, value) \ proto_tree_add_uint(tree, (hfinfo)->id, tvb, start, length, value) +#define proto_tree_add_float(tree, hfinfo, tvb, start, length, value) \ + proto_tree_add_float(tree, (hfinfo)->id, tvb, start, length, value) + #define proto_tree_add_float_format_value(tree, hfinfo, \ tvb, start, length, value, format, ...) \ proto_tree_add_float_format_value(tree, (hfinfo)->id, \ |