mirror of
https://github.com/samba-team/samba.git
synced 2025-11-14 12:23:52 +03:00
r9296: Reinstate generation of push/pull functions for each field in a struct
or union.
(This used to be commit 72420f24e6)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c1f165d6e9
commit
ca1b2eae77
@@ -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";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user