svn commit: samba r9297 - in branches/SAMBA_4_0/source/script: .
tpot at samba.org
tpot at samba.org
Sat Aug 13 02:59:56 GMT 2005
Author: tpot
Date: 2005-08-13 02:59:56 +0000 (Sat, 13 Aug 2005)
New Revision: 9297
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9297
Log:
Add a NDR_CHECK() around each ejs push/pull.
Some experimentation with the top level function calls.
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:47:14 UTC (rev 9296)
+++ branches/SAMBA_4_0/source/script/build_smb_interfaces.pl 2005-08-13 02:59:56 UTC (rev 9297)
@@ -78,7 +78,7 @@
$type = $elt->{TYPE};
$type =~ s/_t$//;
- print FILE "\tejs_${dir}_$type(ejs, v, \"$prefix.$elt->{NAME}\")\n";
+ print FILE "\tNDR_CHECK(ejs_${dir}_$type(ejs, v, \"$prefix.$elt->{NAME}\"));\n";
}
sub transfer_struct($$) {
@@ -123,6 +123,13 @@
print FILE "\n\treturn NT_STATUS_OK;\n";
print FILE "}\n\n";
+ # Function call
+
+ print FILE "static int ejs_$s->{TYPE_DEFINED}(int eid, int argc, struct MprVar **argv)\n";
+ print FILE "{\n";
+ print FILE "\treturn ejs_raw_call(eid, argc, argv, (ejs_pull_function_t)ejs_pull_$s->{TYPE_DEFINED}, (ejs_push_function_t)ejs_push_$s->{TYPE_DEFINED});\n";
+ print FILE "}\n\n";
+
} else {
# Top level union
More information about the samba-cvs
mailing list