diff options
author | Günther Deschner <gd@samba.org> | 2008-02-19 02:35:03 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-19 03:12:46 +0100 |
commit | e87216972a01ac233e383674555b2a1ff5dfbaab (patch) | |
tree | 956b47c6704e449e357cba0fbefe71e6a6240d71 /source3/rpc_server/srv_svcctl.c | |
parent | a750bbf1b8d0d2b48af6be40f8d505b5e0edd899 (diff) | |
download | samba-e87216972a01ac233e383674555b2a1ff5dfbaab.tar.gz samba-e87216972a01ac233e383674555b2a1ff5dfbaab.tar.bz2 samba-e87216972a01ac233e383674555b2a1ff5dfbaab.zip |
Use pidl for _svcctl_ControlService().
Guenther
(This used to be commit 4797ca0bd5dc922f6ba5ebb93bf65ceee09a678e)
Diffstat (limited to 'source3/rpc_server/srv_svcctl.c')
-rw-r--r-- | source3/rpc_server/srv_svcctl.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/source3/rpc_server/srv_svcctl.c b/source3/rpc_server/srv_svcctl.c index 5f55593f6d..dd3a42235d 100644 --- a/source3/rpc_server/srv_svcctl.c +++ b/source3/rpc_server/srv_svcctl.c @@ -179,23 +179,7 @@ static bool api_svcctl_start_service(pipes_struct *p) static bool api_svcctl_control_service(pipes_struct *p) { - SVCCTL_Q_CONTROL_SERVICE q_u; - SVCCTL_R_CONTROL_SERVICE r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - if(!svcctl_io_q_control_service("", &q_u, data, 0)) - return False; - - r_u.status = _svcctl_control_service(p, &q_u, &r_u); - - if(!svcctl_io_r_control_service("", &r_u, rdata, 0)) - return False; - - return True; + return proxy_svcctl_call(p, NDR_SVCCTL_CONTROLSERVICE); } /******************************************************************* |