svn commit: samba r9296 - in branches/SAMBA_4_0/source/script: .
tpot at samba.org
tpot at samba.org
Sat Aug 13 02:47:14 GMT 2005
Author: tpot
Date: 2005-08-13 02:47:14 +0000 (Sat, 13 Aug 2005)
New Revision: 9296
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9296
Log:
Reinstate generation of push/pull functions for each field in a struct
or union.
Modified:
branches/SAMBA_4_0/source/script/build_smb_interfaces.pl
Changeset:
Modified: branches/SAMBA_4_0/source/script/build_smb_interfaces.pl
===================================================================
--- branches/SAMBA_4_0/source/script/build_smb_interfaces.pl 2005-08-13 02:40:02 UTC (rev 9295)
+++ branches/SAMBA_4_0/source/script/build_smb_interfaces.pl 2005-08-13 02:47:14 UTC (rev 9296)
@@ -109,12 +109,18 @@
print FILE "NTSTATUS ejs_pull_$s->{TYPE_DEFINED}(struct ejs_rpc *ejs, struct MprVar *v, struct $s->{TYPE_DEFINED} *r)\n";
print FILE "{\n";
- print FILE "\treturn NT_STATUS_OK;\n";
+
+ transfer_struct("pull", $s);
+
+ print FILE "\n\treturn NT_STATUS_OK;\n";
print FILE "}\n\n";
print FILE "NTSTATUS ejs_push_$s->{TYPE_DEFINED}(struct ejs_rpc *ejs, struct MprVar *v, const struct $s->{TYPE_DEFINED} *r)\n";
print FILE "{\n";
- print FILE "\treturn NT_STATUS_OK;\n";
+
+ transfer_struct("push", $s);
+
+ print FILE "\n\treturn NT_STATUS_OK;\n";
print FILE "}\n\n";
} else {
@@ -127,12 +133,18 @@
print FILE "NTSTATUS ejs_pull_$s->{TYPE_DEFINED}_$arm->{NAME}(struct ejs_rpc *ejs, struct MprVar *v, union $s->{TYPE_DEFINED} *r)\n";
print FILE "{\n";
- print FILE "\treturn NT_STATUS_OK;\n";
+
+ transfer_struct("pull", $arm);
+
+ print FILE "\n\treturn NT_STATUS_OK;\n";
print FILE "}\n\n";
print FILE "NTSTATUS ejs_push_$s->{TYPE_DEFINED}_$arm->{NAME}(struct ejs_rpc *ejs, struct MprVar *v, const union $s->{TYPE_DEFINED} *r)\n";
print FILE "{\n";
- print FILE "\treturn NT_STATUS_OK;\n";
+
+ transfer_struct("push", $arm);
+
+ print FILE "\n\treturn NT_STATUS_OK;\n";
print FILE "}\n\n";
}
More information about the samba-cvs
mailing list