diff options
author | Samuel Cabrero <scabrero@suse.de> | 2019-05-28 16:32:39 +0200 |
---|---|---|
committer | Samuel Cabrero <scabrero@sn-devel-184> | 2020-03-20 15:36:36 +0000 |
commit | f6d41e5b44fd68c6f47828930bdd9f1a621a5c02 (patch) | |
tree | 228a1d096b40ee5b32c33f586b088dbdf25d444e /pidl | |
parent | d891c2d389b39d1535c30ab759f1a0dd48787ec0 (diff) | |
download | samba-f6d41e5b44fd68c6f47828930bdd9f1a621a5c02.tar.gz |
s3:rpc_server: Remove api_struct
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm index f796394da91..a1729d86d77 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm @@ -333,8 +333,6 @@ sub boilerplate_iface($) $self->pidl("}"); $self->pidl(""); $self->pidl("context_fns->next = context_fns->prev = NULL;"); - $self->pidl("context_fns->n_cmds = rpc_srv_get_pipe_num_cmds(&iface->syntax_id);"); - $self->pidl("context_fns->cmds = rpc_srv_get_pipe_cmds(&iface->syntax_id);"); $self->pidl("context_fns->context_id = context->context_id;"); $self->pidl("context_fns->syntax = iface->syntax_id;"); $self->pidl("DLIST_ADD( p->contexts, context_fns);"); @@ -685,8 +683,6 @@ sub boilerplate_ep_server($) $self->pidl("int i;"); $self->pidl("NTSTATUS ret;"); $self->pidl("struct dcerpc_binding *binding;"); - $self->pidl("const struct api_struct *legacy_cmds = NULL;"); - $self->pidl("int n_fns = 0;"); $self->pidl(""); $self->pidlnoindent("#ifdef DCESRV_INTERFACE_$uname\_NCACN_NP_SECONDARY_ENDPOINT"); $self->pidl("const char *ncacn_np_secondary_endpoint = DCESRV_INTERFACE_$uname\_NCACN_NP_SECONDARY_ENDPOINT;"); @@ -698,23 +694,6 @@ sub boilerplate_ep_server($) $self->indent(); $self->pidl("const char *name = ndr_table_$name.endpoints->names[i];"); $self->pidl(""); - $self->pidl("/* Register the interface for local dispatching */"); - $self->pidl("legacy_cmds = $name\_get_pipe_fns(&n_fns);"); - $self->pidl("if (legacy_cmds == NULL) {"); - $self->indent(); - $self->pidl("DBG_ERR(\"Failed to get legacy \'$name\' API cmds\\n\");"); - $self->pidl("return NT_STATUS_UNSUCCESSFUL;"); - $self->deindent(); - $self->pidl("}"); - $self->pidl(""); - $self->pidl("ret = rpc_srv_register(SMB_RPC_INTERFACE_VERSION, \"$name\", \"$name\", &ndr_table_$name, legacy_cmds, n_fns, NULL);"); - $self->pidl("if (!NT_STATUS_IS_OK(ret)) {"); - $self->indent(); - $self->pidl("DBG_ERR(\"Failed to register legacy \'$name\' API cmds\\n\");"); - $self->pidl("return ret;"); - $self->deindent(); - $self->pidl("}"); - $self->pidl(""); $self->pidl("ret = dcerpc_parse_binding(dce_ctx, name, &binding);"); $self->pidl("if (NT_STATUS_IS_ERR(ret)) {"); $self->indent(); @@ -750,17 +729,6 @@ sub boilerplate_ep_server($) $self->pidl("static NTSTATUS $name\__op_shutdown_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)"); $self->pidl("{"); $self->indent(); - $self->pidl("NTSTATUS status;"); - $self->pidl(""); - $self->pidl("/* Unregister the interface from local dispatching table */"); - $self->pidl("status = rpc_srv_unregister(&ndr_table_$name);"); - $self->pidl("if (!NT_STATUS_IS_OK(status)) {"); - $self->indent(); - $self->pidl("DBG_ERR(\"Failed to unregister legacy \'$name\' API cmds\\n\");"); - $self->pidl("return status;"); - $self->deindent(); - $self->pidl("}"); - $self->pidl(""); $self->pidl("return NT_STATUS_OK;"); $self->deindent(); $self->pidl("}"); @@ -880,8 +848,6 @@ sub Parse($$) $self->pidl("/* s3 compat server functions auto-generated by pidl */"); $self->pidl("#include \"$header\""); $self->pidl("#include \"$h_scompat\""); - $self->pidl("#include <rpc_server/srv_pipe_register.h>"); - $self->pidl("#include <rpc_server/srv_pipe_internal.h>"); $self->pidl("#include <librpc/rpc/dcesrv_core.h>"); $self->pidl("#include <rpc_server/rpc_config.h>"); |