summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-08-13 02:59:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:22 -0500
commitc04b6ada5f1a7ce6522277e1a8ad27dfd216fb12 (patch)
tree99e8213f812d356f4ccd7f529fd4977664a7c872
parentca1b2eae776d34ad2460cf467ba951c8bb85433c (diff)
downloadsamba-c04b6ada5f1a7ce6522277e1a8ad27dfd216fb12.tar.gz
samba-c04b6ada5f1a7ce6522277e1a8ad27dfd216fb12.tar.bz2
samba-c04b6ada5f1a7ce6522277e1a8ad27dfd216fb12.zip
r9297: Add a NDR_CHECK() around each ejs push/pull.
Some experimentation with the top level function calls. (This used to be commit e8d53d15e4371bc266a691c3c3c82675373ba7f4)
-rwxr-xr-xsource4/script/build_smb_interfaces.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/script/build_smb_interfaces.pl b/source4/script/build_smb_interfaces.pl
index 1c93385a6d..5fac94ca6e 100755
--- a/source4/script/build_smb_interfaces.pl
+++ b/source4/script/build_smb_interfaces.pl
@@ -78,7 +78,7 @@ sub transfer_element($$$) {
$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 @@ foreach my $s (@newheader) {
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