From 015d9194e1471455371ce7a8a591125a7c492619 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 27 Apr 2017 18:23:48 -0700 Subject: Add proto_tree_add_item_ret_boolean(). It does what it says on the label. You get back TRUE or FALSE in a gboolean. While we're at it, remove a copied-and-pasted comment that doesn't apply, and update another comment. Change-Id: I117391d2ffe44124a614a7f64dad1b389c1ebc6a Reviewed-on: https://code.wireshark.org/review/21394 Reviewed-by: Guy Harris --- doc/README.dissector | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/README.dissector b/doc/README.dissector index 91fae35cd1..9f585c2b5c 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -1252,6 +1252,10 @@ protocol or field labels to the proto_tree: proto_tree_add_item_ret_uint64(tree, id, tvb, start, length, encoding, *retval); + proto_item* + proto_tree_add_item_ret_boolean(tree, id, tvb, start, length, encoding, + *retval); + proto_item* proto_tree_add_subtree(tree, tvb, start, length, idx, tree_item, text); -- cgit v1.2.1