mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Remove unused marshalling for SVCCTL_CONTROL_SERVICE.
Guenther
(This used to be commit 84112a24f5
)
This commit is contained in:
parent
87bccd70ca
commit
35e48a4b1d
@ -196,18 +196,6 @@ typedef struct _ServiceInfo {
|
|||||||
|
|
||||||
/**************************/
|
/**************************/
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
POLICY_HND handle;
|
|
||||||
uint32 control;
|
|
||||||
} SVCCTL_Q_CONTROL_SERVICE;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
SERVICE_STATUS svc_status;
|
|
||||||
WERROR status;
|
|
||||||
} SVCCTL_R_CONTROL_SERVICE;
|
|
||||||
|
|
||||||
/**************************/
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
POLICY_HND handle;
|
POLICY_HND handle;
|
||||||
} SVCCTL_Q_QUERY_STATUS;
|
} SVCCTL_Q_QUERY_STATUS;
|
||||||
|
@ -229,35 +229,3 @@ WERROR rpccli_svcctl_query_config(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
|
|||||||
|
|
||||||
return out.status;
|
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 )
|
|
||||||
{
|
|
||||||
SVCCTL_Q_CONTROL_SERVICE in;
|
|
||||||
SVCCTL_R_CONTROL_SERVICE out;
|
|
||||||
prs_struct qbuf, rbuf;
|
|
||||||
|
|
||||||
ZERO_STRUCT(in);
|
|
||||||
ZERO_STRUCT(out);
|
|
||||||
|
|
||||||
memcpy( &in.handle, hService, sizeof(POLICY_HND) );
|
|
||||||
in.control = control;
|
|
||||||
|
|
||||||
CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_CONTROL_SERVICE,
|
|
||||||
in, out,
|
|
||||||
qbuf, rbuf,
|
|
||||||
svcctl_io_q_control_service,
|
|
||||||
svcctl_io_r_control_service,
|
|
||||||
WERR_GENERAL_FAILURE );
|
|
||||||
|
|
||||||
if ( !W_ERROR_IS_OK( out.status ) )
|
|
||||||
return out.status;
|
|
||||||
|
|
||||||
memcpy( status, &out.svc_status, sizeof(SERVICE_STATUS) );
|
|
||||||
|
|
||||||
return out.status;
|
|
||||||
}
|
|
||||||
|
@ -358,53 +358,6 @@ bool svcctl_io_r_enum_dependent_services(const char *desc, SVCCTL_R_ENUM_DEPENDE
|
|||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
********************************************************************/
|
|
||||||
|
|
||||||
bool svcctl_io_q_control_service(const char *desc, SVCCTL_Q_CONTROL_SERVICE *q_u, prs_struct *ps, int depth)
|
|
||||||
{
|
|
||||||
if (q_u == NULL)
|
|
||||||
return False;
|
|
||||||
|
|
||||||
prs_debug(ps, depth, desc, "svcctl_io_q_control_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("control", ps, depth, &q_u->control))
|
|
||||||
return False;
|
|
||||||
|
|
||||||
return True;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
********************************************************************/
|
|
||||||
|
|
||||||
bool svcctl_io_r_control_service(const char *desc, SVCCTL_R_CONTROL_SERVICE *r_u, prs_struct *ps, int depth)
|
|
||||||
{
|
|
||||||
if (r_u == NULL)
|
|
||||||
return False;
|
|
||||||
|
|
||||||
prs_debug(ps, depth, desc, "svcctl_io_r_control_service");
|
|
||||||
depth++;
|
|
||||||
|
|
||||||
if(!prs_align(ps))
|
|
||||||
return False;
|
|
||||||
|
|
||||||
if(!svcctl_io_service_status("service_status", &r_u->svc_status, ps, depth))
|
|
||||||
return False;
|
|
||||||
|
|
||||||
if(!prs_werror("status", ps, depth, &r_u->status))
|
|
||||||
return False;
|
|
||||||
|
|
||||||
return True;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user