Wireshark mailing list archives

proto_tree_add_subtree[_format]


From: mmann78 () netscape net
Date: Wed, 9 Jul 2014 22:06:23 -0400


I finished the conversion of proto_tree_add_text calls that were acting as "subtree labels" into 
proto_tree_add_subtree[_format].  This removed almost 4000 calls in the dissector directory (over 4000 if you include 
the plugins) and brings the current total proto_tree_add_text count in the dissector directory to 5831 (6586 over 
entire wireshark master trunk).  Of the 5831, checkAPIs.pl considers 4690 to be "useless". (I believe the criteria 
being using printf style arguments and no return value (like when it's intended as a subtree label)).
Since "subtree label" is the last "legimate" reason to use proto_tree_add_text, should it be added as a 
"soft-deprecated API" to checkAPIs script?  I wasn't sure if that was just being too obnoxious at the moment.  It may 
need its own "paragraph" with suggestions on what to use instead (make field filterable, expert info, subtree label)
___________________________________________________________________________
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: