From: Volker Lendecke Date: Tue, 6 Jan 2009 22:46:05 +0000 (+0100) Subject: Remove the rpc_srv_register wrapper around rpc_pipe_register_commands X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=964acde86e17d91148e063ce81014444e4c1f63d;p=metze%2Fsamba%2Fwip.git Remove the rpc_srv_register wrapper around rpc_pipe_register_commands --- diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index a8205eaa1945..4f78d69bcc70 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1002,10 +1002,9 @@ bool check_bind_req(struct pipes_struct *p, RPC_IFACE* abstract, Register commands to an RPC pipe *******************************************************************/ -NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, - const char *srv, - const struct ndr_syntax_id *interface, - const struct api_struct *cmds, int size) +NTSTATUS rpc_srv_register(int version, const char *clnt, const char *srv, + const struct ndr_interface_table *iface, + const struct api_struct *cmds, int size) { struct rpc_table *rpc_entry; @@ -1045,23 +1044,13 @@ NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, ZERO_STRUCTP(rpc_entry); rpc_entry->pipe.clnt = SMB_STRDUP(clnt); rpc_entry->pipe.srv = SMB_STRDUP(srv); - rpc_entry->rpc_interface = *interface; + rpc_entry->rpc_interface = iface->syntax_id; rpc_entry->cmds = cmds; rpc_entry->n_cmds = size; return NT_STATUS_OK; } -NTSTATUS rpc_srv_register(int version, const char *clnt, - const char *srv, - const struct ndr_interface_table *iface, - const struct api_struct *cmds, int size) -{ - return rpc_pipe_register_commands(version, clnt, srv, - &iface->syntax_id, - cmds, size); -} - /** * Is a named pipe known? * @param[in] cli_filename The pipe name requested by the client