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 /tools | |
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 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 598e95a03b..5352709c7b 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -1587,7 +1587,7 @@ sub check_proto_tree_add_XXX_encoding($$) $args =~ s/\(.*\)//sg; if ($args =~ /,\s*ENC_/xos) { - if (!($func =~ /proto_tree_add_(time|item|bitmask|bits_item|bits_ret_val)/xos) + if (!($func =~ /proto_tree_add_(time|item|bitmask|bits_item|bits_ret_val|item_ret_int|item_ret_uint)/xos) ) { print STDERR "Error: ".$filename." uses $func with ENC_*.\n"; $errorCount++; |