summaryrefslogtreecommitdiff
path: root/tools/fix-encoding-args.pl
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-11-29 15:58:56 -0500
committerMichael Mann <mmann78@netscape.net>2014-12-08 01:13:02 +0000
commite172ebb3b4a15fb55f698eff5df33a29b1a8f249 (patch)
tree9fea7f58b7b877300013e0a734bba58c68ab60d3 /tools/fix-encoding-args.pl
parent75cdf9201eefb8da2952afc36021bbbd9d9eecf1 (diff)
downloadwireshark-e172ebb3b4a15fb55f698eff5df33a29b1a8f249.tar.gz
Add proto_tree_add_bitmask_with_flags.
It's proto_tree_add_bitmask with the ability to control the data appended to header. Change-Id: Icce97437ba7cfc9158ec204a837da8db8138424a Reviewed-on: https://code.wireshark.org/review/5533 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools/fix-encoding-args.pl')
-rwxr-xr-xtools/fix-encoding-args.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fix-encoding-args.pl b/tools/fix-encoding-args.pl
index dd1d4300a2..7f7612c792 100755
--- a/tools/fix-encoding-args.pl
+++ b/tools/fix-encoding-args.pl
@@ -214,6 +214,7 @@ my @findAllFunctionList =
proto_tree_add_bits_item
proto_tree_add_bits_ret_val
proto_tree_add_bitmask
+ proto_tree_add_bitmask_with_flags
tvb_get_bits
tvb_get_bits16
tvb_get_bits24
@@ -317,6 +318,7 @@ while (my $fileName = $ARGV[0]) {
# Find and replace: alters <fcn_name>() encoding arg in $fileContents
$found += fix_encoding_args(1, $searchReplaceFalseTrueHRef, "proto_tree_add_bits_(?:item|ret_val)", \$fileContents, $fileName);
$found += fix_encoding_args(1, $searchReplaceFalseTrueHRef, "proto_tree_add_bitmask", \$fileContents, $fileName);
+ $found += fix_encoding_args(1, $searchReplaceFalseTrueHRef, "proto_tree_add_bitmask_with_flags", \$fileContents, $fileName);
$found += fix_encoding_args(1, $searchReplaceFalseTrueHRef, "tvb_get_bits(?:16|24|32|64)?", \$fileContents, $fileName);
$found += fix_encoding_args(1, $searchReplaceFalseTrueHRef, "tvb_get_(?:ephemeral_)?unicode_string[z]?", \$fileContents, $fileName);