diff options
author | Günther Deschner <gd@samba.org> | 2008-02-18 12:48:43 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-18 12:58:44 +0100 |
commit | 6d95d7d9b9277e3aba6b43869a31fd3226ac697c (patch) | |
tree | ae00ada041f0444068038590b385561beda1b4b7 /source3/rpc_client | |
parent | f40f80008d9a20d54c3a43b001929c3963c82d0a (diff) | |
download | samba-6d95d7d9b9277e3aba6b43869a31fd3226ac697c.tar.gz samba-6d95d7d9b9277e3aba6b43869a31fd3226ac697c.tar.bz2 samba-6d95d7d9b9277e3aba6b43869a31fd3226ac697c.zip |
Remove unused marshalling for SVCCTL_OPEN_SERVICE.
Guenther
(This used to be commit e0a8818af0e3e82e9b70ff6c485090986b435fed)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_svcctl.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source3/rpc_client/cli_svcctl.c b/source3/rpc_client/cli_svcctl.c index 699db6cd77..0a5cf7674b 100644 --- a/source3/rpc_client/cli_svcctl.c +++ b/source3/rpc_client/cli_svcctl.c @@ -57,39 +57,6 @@ const char* svc_status_string( uint32 state ) return talloc_strdup(talloc_tos(), msg); } -/******************************************************************** -********************************************************************/ - -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 ) -{ - SVCCTL_Q_OPEN_SERVICE in; - SVCCTL_R_OPEN_SERVICE out; - prs_struct qbuf, rbuf; - - ZERO_STRUCT(in); - ZERO_STRUCT(out); - - memcpy( &in.handle, hSCM, sizeof(POLICY_HND) ); - init_unistr2( &in.servicename, servicename, UNI_STR_TERMINATE ); - in.access = access_desired; - - CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_OPEN_SERVICE_W, - in, out, - qbuf, rbuf, - svcctl_io_q_open_service, - svcctl_io_r_open_service, - WERR_GENERAL_FAILURE ); - - if ( !W_ERROR_IS_OK( out.status ) ) - return out.status; - - memcpy( hService, &out.handle, sizeof(POLICY_HND) ); - - return out.status; -} - /******************************************************************* *******************************************************************/ |