svn commit: samba r4883 - in branches/SAMBA_4_0/source/build/pidl: .
tridge at samba.org
tridge at samba.org
Fri Jan 21 06:44:53 GMT 2005
Author: tridge
Date: 2005-01-21 06:44:52 +0000 (Fri, 21 Jan 2005)
New Revision: 4883
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4883
Log:
support ndr_size_ generation on unions as well as structures
Modified:
branches/SAMBA_4_0/source/build/pidl/header.pm
Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/header.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/header.pm 2005-01-21 01:42:45 UTC (rev 4882)
+++ branches/SAMBA_4_0/source/build/pidl/header.pm 2005-01-21 06:44:52 UTC (rev 4883)
@@ -228,7 +228,12 @@
my($d) = shift;
if (needed::is_needed("ndr_size_$d->{NAME}")) {
- $res .= "size_t ndr_size_$d->{NAME}(const struct $d->{NAME} *r, int flags);\n";
+ if ($d->{DATA}{TYPE} eq "STRUCT") {
+ $res .= "size_t ndr_size_$d->{NAME}(const struct $d->{NAME} *r, int flags);\n";
+ }
+ if ($d->{DATA}{TYPE} eq "UNION") {
+ $res .= "size_t ndr_size_$d->{NAME}(const union $d->{NAME} *r, uint32_t level, int flags);\n";
+ }
}
if (!util::has_property($d, "public")) {
More information about the samba-cvs
mailing list