forked from osmocom/wireshark
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:
parent
b238cd1541
commit
eee21a6e1e
|
@ -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
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Reference in New Issue