aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-27 18:23:48 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-28 01:24:39 +0000
commit015d9194e1471455371ce7a8a591125a7c492619 (patch)
tree9dba30c8ab161598763f954da89ea4cdc6d5d8d3 /epan/proto.h
parentb9d3db608de194d6f0e8bfeb1f1cbe9c5d8c858b (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h
index e46c8986d2..7306ad1d8e 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1107,7 +1107,10 @@ encoding in the tvbuff
The length argument must
be set to the appropriate size of the native type as in other proto_add routines.
-Integers of 8, 16, 24 and 32 bits can be retrieved with these functions.
+Integers of 8, 16, 24 and 32 bits can be retrieved with the _ret_int and
+ret_uint functions; integers of 40, 48, 56, and 64 bits can be retrieved
+with the _ret_uint64 function; Boolean values of 8, 16, 24, 32, 40, 48,
+56, and 64 bits can be retrieved with the _ret_boolean function.
@param tree the tree to append this item to
@param hfindex field
@@ -1130,6 +1133,10 @@ WS_DLL_PUBLIC proto_item *
proto_tree_add_item_ret_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb,
const gint start, gint length, const guint encoding, guint64 *retval);
+WS_DLL_PUBLIC proto_item *
+proto_tree_add_item_ret_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb,
+ const gint start, gint length, const guint encoding, gboolean *retval);
+
/** Add an string item to a proto_tree, using the text label registered to
that item.