diff options
author | Günther Deschner <gd@samba.org> | 2009-02-09 11:13:10 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-09 12:34:03 +0100 |
commit | 160e8c7a3779b263130469bffb168d142a7cd708 (patch) | |
tree | 7f69ec13b78fb61158b490674b4c816ddbb69a52 /source3/rpc_server/srv_spoolss.c | |
parent | 763fe063d2aacb40c87208155d3d35d19ebc971d (diff) | |
download | samba-160e8c7a3779b263130469bffb168d142a7cd708.tar.gz samba-160e8c7a3779b263130469bffb168d142a7cd708.tar.bz2 samba-160e8c7a3779b263130469bffb168d142a7cd708.zip |
s3-spoolss: use pidl for _spoolss_DeletePrinterDriverEx.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_spoolss.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index c3fafbd10d..732d127632 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -1232,27 +1232,7 @@ static bool api_spoolss_addprinterdriverex(pipes_struct *p) static bool api_spoolss_deleteprinterdriverex(pipes_struct *p) { - SPOOL_Q_DELETEPRINTERDRIVEREX q_u; - SPOOL_R_DELETEPRINTERDRIVEREX 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(!spoolss_io_q_deleteprinterdriverex("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_deleteprinterdriverex: unable to unmarshall SPOOL_Q_DELETEPRINTERDRIVEREX.\n")); - return False; - } - - r_u.status = _spoolss_deleteprinterdriverex(p, &q_u, &r_u); - - if(!spoolss_io_r_deleteprinterdriverex("", &r_u, rdata, 0)) { - DEBUG(0,("spoolss_io_r_deleteprinterdriverex: unable to marshall SPOOL_R_DELETEPRINTERDRIVEREX.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_DELETEPRINTERDRIVEREX); } /**************************************************************************** |