svn commit: samba r5009 - in branches/SAMBA_4_0/source/build/pidl: .
tpot at samba.org
tpot at samba.org
Wed Jan 26 06:51:40 GMT 2005
Author: tpot
Date: 2005-01-26 06:51:39 +0000 (Wed, 26 Jan 2005)
New Revision: 5009
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5009
Log:
Put bitmaps in their own subtree.
Modified:
branches/SAMBA_4_0/source/build/pidl/eparser.pm
Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/eparser.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/eparser.pm 2005-01-26 06:29:10 UTC (rev 5008)
+++ branches/SAMBA_4_0/source/build/pidl/eparser.pm 2005-01-26 06:51:39 UTC (rev 5009)
@@ -319,6 +319,8 @@
'bitmask' => "$2"
};
}
+
+ $needed{"ett_$t->{NAME}"} = 1;
}
}
@@ -645,10 +647,13 @@
pidl $_;
if (defined($bitmaps{$cur_fn})) {
+ pidl "\t{\n\t\tproto_tree *subtree = NULL;\n\n";
+ pidl "\t\tif (tree->proto_tree)\n\t\t\tsubtree = proto_item_add_subtree(tree->proto_tree->last_child, ett_$cur_fn);\n\n";
foreach my $e (@{$bitmaps{$cur_fn}->{DATA}{ELEMENTS}}) {
$e =~ /^(.*?) \( (.*?) \)$/;
- pidl "\tproto_tree_add_boolean(tree->proto_tree, hf_${cur_fn}_$1, ndr->tvb, ndr->offset - sizeof(v), sizeof(v), v);\n";
+ pidl "\t\tproto_tree_add_boolean(subtree, hf_${cur_fn}_$1, ndr->tvb, ndr->offset - sizeof(v), sizeof(v), v);\n";
}
+ pidl "\t}\n";
}
next;
More information about the samba-cvs
mailing list