From 125696b73dbe3d0813432c9775c146e861b4707c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 6 Jan 2009 23:29:25 +0100 Subject: Pass the full ndr_interface_table into the s3 rpcserver when registering --- source3/include/proto.h | 4 ++++ source3/rpc_server/srv_pipe.c | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index e65369e421..a379134848 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6194,6 +6194,10 @@ 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); bool is_known_pipename(const char *cli_filename); bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p); bool api_pipe_alter_context(pipes_struct *p, prs_struct *rpc_in_p); diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 03d9c5b208..a8205eaa19 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1052,6 +1052,16 @@ NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, 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 -- cgit