diff options
author | AndersBroman <anders.broman@ericsson.com> | 2015-02-13 09:34:16 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-03-19 16:06:18 +0000 |
commit | b307ffe0f990860284f6e2be4f7a8f01fa822d36 (patch) | |
tree | ed93209968eefe4727e3318440702ae0b8884c9e /doc | |
parent | ef7e4c52f2daf5ce27b9d311900f7a34ea7c71a3 (diff) |
Implement proto_tree_add_item_ret_int() and proto_tree_add_item_ret_uint() which
works as proto_tree_add_item(), but also returns the value of (u)ints
of 8,16,24 and 32 bits length in a 32 bit variable. It's based on Hadriels
previous work.
Change-Id: If3b4b8588b63251f1ee9b954a202acde7c02ce86
Reviewed-on: https://code.wireshark.org/review/7230
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.dissector | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/README.dissector b/doc/README.dissector index abe33c0e7d..1440370ae3 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -1126,6 +1126,14 @@ protocol or field labels to the proto_tree: proto_tree_add_item(tree, id, tvb, start, length, encoding); proto_item* + proto_tree_add_item_ret_int(tree, id, tvb, start, length, encoding, + *retval); + + proto_item* + proto_tree_add_item_ret_uint(tree, id, tvb, start, length, encoding, + *retval); + + proto_item* proto_tree_add_subtree(tree, tvb, start, length, idx, tree_item, text); @@ -1532,6 +1540,12 @@ Subarea Nodes. The user does not have to shift the value of the FID to the high nibble of the byte ("sna.th.fid == 0xf0") as was necessary in the past. +proto_tree_add_item_ret_XXX() +------------------------------ +proto_tree_add_item_ret_XXX is used when you want the displayed value returned +for futher processing only integer and unsigned integer types up to 32 bits are +supported usage of proper FT_ is checked. + proto_tree_add_XXX_item() --------------------- proto_tree_add_XXX_item is used when you wish to do no special formatting, |