Wireshark mailing list archives
Equivalency between APIs
From: Juan Jose Martin Carrascosa <juanjo () rti com>
Date: Tue, 26 Aug 2014 15:41:43 +0200
Hi all, I need to remove the proto_tree_add_text calls, and I wanted to know if this is equivalent: Before: ti_channel = proto_tree_add_text(rtps_parameter_tree, tvb, off, 0, "Channel[%u]", ch); channel_tree = proto_item_add_subtree(ti_channel, ett_rtps_locator_filter_channel); Now: channel_tree = proto_tree_add_subtree_format(rtps_parameter_tree, tvb, off, 0, ett_rtps_locator_filter_channel, &ti_channel, "Channel[%u]", ch); Thanks! Juanjo
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Equivalency between APIs Juan Jose Martin Carrascosa (Aug 26)
- <Possible follow-ups>
- Re: Equivalency between APIs mmann78 (Aug 26)
- Re: Equivalency between APIs Juan Jose Martin Carrascosa (Aug 26)
- Re: Equivalency between APIs mmann78 (Aug 26)
- Re: Equivalency between APIs Juan Jose Martin Carrascosa (Aug 26)