diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-10 17:52:38 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-12 15:25:40 +0100 |
commit | 454bedcb806ce54dae2e6ecc6650d8972287c87c (patch) | |
tree | fa54ce877d3c40448fff41567b91754c9c9cd1cd /pidl/lib/Parse/Pidl | |
parent | 8844acf4248ae8df9293eeff2eed8827ea802211 (diff) | |
download | samba-454bedcb806ce54dae2e6ecc6650d8972287c87c.tar.gz samba-454bedcb806ce54dae2e6ecc6650d8972287c87c.tar.bz2 samba-454bedcb806ce54dae2e6ecc6650d8972287c87c.zip |
pidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo]
metze
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm index 958f215a2e..0cd9803208 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm @@ -79,15 +79,16 @@ sub ParseFunctionSync($$$) my ($interface, $fn, $name) = @_; my $uname = uc $name; + if (has_property($fn, "todo")) { + return; + } + my $proto = "NTSTATUS dcerpc_$name(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct $name *r)"; $res_hdr .= "\n$proto;\n"; $res .= "$proto\n{\n"; - if (has_property($fn, "todo")) { - $res .= "\treturn NT_STATUS_NOT_IMPLEMENTED;\n"; - } else { - $res .= " + $res .= " NTSTATUS status; if (p->conn->flags & DCERPC_DEBUG_PRINT_IN) { @@ -109,7 +110,6 @@ sub ParseFunctionSync($$$) " return status; "; - } $res .= "}\n\n"; } |