summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-08-13 02:47:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:22 -0500
commitca1b2eae776d34ad2460cf467ba951c8bb85433c (patch)
treede124e021bdbc1eb09417f84762098529eecb694 /source4
parentc1f165d6e9a894bde0a73dae6b47fc01126bf00a (diff)
downloadsamba-ca1b2eae776d34ad2460cf467ba951c8bb85433c.tar.gz
samba-ca1b2eae776d34ad2460cf467ba951c8bb85433c.tar.bz2
samba-ca1b2eae776d34ad2460cf467ba951c8bb85433c.zip
r9296: Reinstate generation of push/pull functions for each field in a struct
or union. (This used to be commit 72420f24e654661c8792bd7d0eae610ad182d529)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/build_smb_interfaces.pl20
1 files changed, 16 insertions, 4 deletions
diff --git a/source4/script/build_smb_interfaces.pl b/source4/script/build_smb_interfaces.pl
index 7a3b6aab49..1c93385a6d 100755
--- a/source4/script/build_smb_interfaces.pl
+++ b/source4/script/build_smb_interfaces.pl
@@ -109,12 +109,18 @@ foreach my $s (@newheader) {
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 @@ foreach my $s (@newheader) {
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";
}