summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-18 12:12:43 +0100
committerGünther Deschner <gd@samba.org>2008-02-18 12:12:43 +0100
commit330fe0a62a29ff994e1520dae209eb4980a7259c (patch)
treeeb7ae76b2a5c6664ed906d332331f3bd875af918 /source3/rpc_client
parent0ca295bb32d69711eb799d8f8323aa17e5928a10 (diff)
downloadsamba-330fe0a62a29ff994e1520dae209eb4980a7259c.tar.gz
samba-330fe0a62a29ff994e1520dae209eb4980a7259c.tar.bz2
samba-330fe0a62a29ff994e1520dae209eb4980a7259c.zip
Remove unused marshalling for SVCCTL_OPEN_SCMANAGER.
Guenther (This used to be commit 1162b8a02d365b79f5a3e86c936bae80092f1869)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_svcctl.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/source3/rpc_client/cli_svcctl.c b/source3/rpc_client/cli_svcctl.c
index 95673c1565..699db6cd77 100644
--- a/source3/rpc_client/cli_svcctl.c
+++ b/source3/rpc_client/cli_svcctl.c
@@ -60,48 +60,6 @@ const char* svc_status_string( uint32 state )
/********************************************************************
********************************************************************/
-WERROR rpccli_svcctl_open_scm(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
- POLICY_HND *hSCM, uint32 access_desired )
-{
- SVCCTL_Q_OPEN_SCMANAGER in;
- SVCCTL_R_OPEN_SCMANAGER out;
- prs_struct qbuf, rbuf;
- fstring server;
-
- ZERO_STRUCT(in);
- ZERO_STRUCT(out);
-
- /* leave the database name NULL to get the default service db */
-
- in.database = NULL;
-
- /* set the server name */
-
- if ( !(in.servername = TALLOC_P( mem_ctx, UNISTR2 )) )
- return WERR_NOMEM;
- fstr_sprintf( server, "\\\\%s", cli->cli->desthost );
- init_unistr2( in.servername, server, UNI_STR_TERMINATE );
-
- in.access = access_desired;
-
- CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_OPEN_SCMANAGER_W,
- in, out,
- qbuf, rbuf,
- svcctl_io_q_open_scmanager,
- svcctl_io_r_open_scmanager,
- WERR_GENERAL_FAILURE );
-
- if ( !W_ERROR_IS_OK( out.status ) )
- return out.status;
-
- memcpy( hSCM, &out.handle, sizeof(POLICY_HND) );
-
- return out.status;
-}
-
-/********************************************************************
-********************************************************************/
-
WERROR rpccli_svcctl_open_service( struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *hSCM, POLICY_HND *hService,
const char *servicename, uint32 access_desired )