pidl:Samba4/NDR/Client: don't generate client stubs for function marked as [todo]
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Mar 2010 16:52:38 +0000 (17:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Mar 2010 14:25:40 +0000 (15:25 +0100)
metze

pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm

index 958f215a2e7808346b33578c49897f87551b4893..0cd9803208e83e10a26c2aae0668b139f9cdfc1a 100644 (file)
@@ -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";
 }