Remove the rpc_srv_register wrapper around rpc_pipe_register_commands
authorVolker Lendecke <vl@samba.org>
Tue, 6 Jan 2009 22:46:05 +0000 (23:46 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 9 Jan 2009 22:17:57 +0000 (23:17 +0100)
source3/rpc_server/srv_pipe.c

index a8205eaa1945688696c19f79cfdd582b02af9335..4f78d69bcc702fcd82f2aeaa1333d1cd2799a1b0 100644 (file)
@@ -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