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>
This commit is contained in:
Martin Kaiser 2014-03-31 21:45:40 +02:00
parent b238cd1541
commit eee21a6e1e
1 changed files with 5 additions and 0 deletions

View File

@ -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
/** @} */