From 454bedcb806ce54dae2e6ecc6650d8972287c87c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 10 Mar 2010 17:52:38 +0100 Subject: pidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo] metze --- pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pidl/lib/Parse/Pidl/Samba4/NDR') 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"; } -- cgit