diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2014-03-31 21:45:40 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2014-04-02 19:23:57 +0000 |
commit | eee21a6e1eafd8e4398a55289016f1d8b8284f2f (patch) | |
tree | d99120b9cfacd0369b7e4ccdd7639321e845e4dd /epan/proto.h | |
parent | b238cd15413ec3863b753dae1e71b02c210aeb1b (diff) |
redefine proto_tree_add_float_format_value() if we're using the new
proto tree api, similar to other proto_tree_add_...() functions
Change-Id: Iaef0711b8221a7bbb24f1004c81a1438f5674e42
Reviewed-on: https://code.wireshark.org/review/926
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index ab0f1b409b..778580f6f5 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -2210,6 +2210,11 @@ proto_custom_set(proto_tree* tree, const int 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_format_value(tree, hfinfo, \ + tvb, start, length, value, format, ...) \ + proto_tree_add_float_format_value(tree, (hfinfo)->id, \ + tvb, start, length, value, format, __VA_ARGS__) #endif /** @} */ |