diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-08 09:53:08 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-08 13:12:13 +0100 |
commit | daa964013bc5d036f4da571ce22c0052ef40943a (patch) | |
tree | fa94d2690f3b5f334f823ec266bb6aa1023b324d /pidl/lib/Parse/Pidl/Samba3 | |
parent | 70c698fd547c4bc19cf77693608bbb34acac40b5 (diff) | |
download | samba-daa964013bc5d036f4da571ce22c0052ef40943a.tar.gz samba-daa964013bc5d036f4da571ce22c0052ef40943a.tar.bz2 samba-daa964013bc5d036f4da571ce22c0052ef40943a.zip |
s3: Do not reference ndr_table_<pipe> in the cli_ routines directly
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba3')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm | 4 | ||||
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm index 3fc63a4999..53ca52e979 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm @@ -223,7 +223,7 @@ sub ParseFunctionAsyncSend($$$) $self->pidl(""); $self->pidl("subreq = cli->dispatch_send(state, ev, cli,"); - $self->pidl("\t\t\t &ndr_table_$if,"); + $self->pidl("\t\t\t NDR_".$uif."_UUID, NDR_".$uif."_VERSION,"); $self->pidl("\t\t\t $ufn,"); $self->pidl("\t\t\t &state->tmp);"); $self->pidl("if (tevent_req_nomem(subreq, req)) {"); @@ -387,7 +387,7 @@ sub ParseFunctionSync($$$) $self->pidl(""); $self->pidl("status = cli->dispatch(cli,"); $self->pidl("\t\t\tmem_ctx,"); - $self->pidl("\t\t\t&ndr_table_$if,"); + $self->pidl("\t\t\tNDR_".$uif."_UUID, NDR_".$uif."_VERSION,"); $self->pidl("\t\t\t$ufn,"); $self->pidl("\t\t\t&r);"); $self->pidl(""); diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index 5599de9d79..fca55563ab 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -226,8 +226,8 @@ sub ParseDispatchFunction($) { my ($if) = @_; - pidl_hdr "NTSTATUS rpc_$if->{NAME}_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const struct ndr_interface_table *table, uint32_t opnum, void *r);"; - pidl "NTSTATUS rpc_$if->{NAME}_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const struct ndr_interface_table *table, uint32_t opnum, void *_r)"; + pidl_hdr "NTSTATUS rpc_$if->{NAME}_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *interface, uint32_t interface_version, uint32_t opnum, void *r);"; + pidl "NTSTATUS rpc_$if->{NAME}_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *interface, uint32_t interface_version, uint32_t opnum, void *_r)"; pidl "{"; indent; pidl "if (cli->pipes_struct == NULL) {"; |