summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-06 23:46:05 +0100
committerVolker Lendecke <vl@samba.org>2009-01-09 23:17:57 +0100
commit964acde86e17d91148e063ce81014444e4c1f63d (patch)
treea3070a216a4f923f0debdcdbf3c51eced87a1bdf
parent2729c484fbc317687e537a1acc1d7ec83a96a1bd (diff)
downloadsamba-964acde86e17d91148e063ce81014444e4c1f63d.tar.gz
samba-964acde86e17d91148e063ce81014444e4c1f63d.tar.bz2
samba-964acde86e17d91148e063ce81014444e4c1f63d.zip
Remove the rpc_srv_register wrapper around rpc_pipe_register_commands
-rw-r--r--source3/rpc_server/srv_pipe.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index a8205eaa19..4f78d69bcc 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