]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove unused marshalling for SVCCTL_START_SERVICE.
authorGünther Deschner <gd@samba.org>
Tue, 19 Feb 2008 01:30:53 +0000 (02:30 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 19 Feb 2008 02:12:37 +0000 (03:12 +0100)
Guenther

source/include/rpc_svcctl.h
source/rpc_client/cli_svcctl.c
source/rpc_parse/parse_svcctl.c

index c40ea8e8ce0e4a33848a42f3fe776aebe810959b..4f2182091ac6eff07b8ad09144fb77bb42c0929b 100644 (file)
@@ -196,18 +196,6 @@ typedef struct _ServiceInfo {
 
 /**************************/
 
-typedef struct {
-       POLICY_HND handle;
-       uint32 parmcount;
-       UNISTR4_ARRAY *parameters;
-} SVCCTL_Q_START_SERVICE;
-
-typedef struct {
-       WERROR status;
-} SVCCTL_R_START_SERVICE;
-
-/**************************/
-
 typedef struct {
        POLICY_HND handle;
        uint32 control;
index cdd1b93aaa43a2e4b1930e3e4fbff7f0df6fdcf4..9889d131f33241da1fe96f6d305852bc515dd960 100644 (file)
@@ -233,35 +233,6 @@ WERROR rpccli_svcctl_query_config(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
 /*******************************************************************
 *******************************************************************/
 
-WERROR rpccli_svcctl_start_service( struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
-                                 POLICY_HND *hService,
-                                 const char **parm_array, uint32 parmcount )
-{
-       SVCCTL_Q_START_SERVICE in;
-       SVCCTL_R_START_SERVICE out;
-       prs_struct qbuf, rbuf;
-       
-       ZERO_STRUCT(in);
-       ZERO_STRUCT(out);
-       
-       memcpy( &in.handle, hService, sizeof(POLICY_HND) );
-       
-       in.parmcount  = 0;
-       in.parameters = NULL;
-       
-       CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_START_SERVICE_W,
-                   in, out, 
-                   qbuf, rbuf,
-                   svcctl_io_q_start_service,
-                   svcctl_io_r_start_service,
-                   WERR_GENERAL_FAILURE );
-       
-       return out.status;
-}
-
-/*******************************************************************
-*******************************************************************/
-
 WERROR rpccli_svcctl_control_service( struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
                                    POLICY_HND *hService, uint32 control,
                                   SERVICE_STATUS *status )
index f3ed8d1bf5cad946bf8246614228cf0ee410170f..075d619331fb0fecc8212d974969005f8a0c350c 100644 (file)
@@ -302,50 +302,6 @@ bool svcctl_io_r_enum_services_status(const char *desc, SVCCTL_R_ENUM_SERVICES_S
        return True;
 }
 
-/*******************************************************************
-********************************************************************/
-
-bool svcctl_io_q_start_service(const char *desc, SVCCTL_Q_START_SERVICE *q_u, prs_struct *ps, int depth)
-{
-       if (q_u == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "svcctl_io_q_start_service");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
-               return False;
-
-       if(!prs_uint32("parmcount", ps, depth, &q_u->parmcount))
-               return False;
-
-       if ( !prs_pointer("rights", ps, depth, (void*)&q_u->parameters, sizeof(UNISTR4_ARRAY), (PRS_POINTER_CAST)prs_unistr4_array) )
-               return False;
-
-       return True;
-}
-
-/*******************************************************************
-********************************************************************/
-
-bool svcctl_io_r_start_service(const char *desc, SVCCTL_R_START_SERVICE *r_u, prs_struct *ps, int depth)
-{
-       if (r_u == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "svcctl_io_r_start_service");
-       depth++;
-
-       if(!prs_werror("status", ps, depth, &r_u->status))
-               return False;
-
-       return True;
-}
-
-
 /*******************************************************************
 ********************************************************************/