diff options
author | Günther Deschner <gd@samba.org> | 2009-02-17 04:28:54 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-17 10:52:31 +0100 |
commit | ce71a7c9a753b8f2ec45ba35a5c46c78cacf6739 (patch) | |
tree | 37f71358c5082e9b81b91a58210c823f42539704 /source3/rpc_server/srv_spoolss.c | |
parent | c1f8ee5cba180d23a3226dec1d69ee248b0fbcd0 (diff) | |
download | samba-ce71a7c9a753b8f2ec45ba35a5c46c78cacf6739.tar.gz samba-ce71a7c9a753b8f2ec45ba35a5c46c78cacf6739.tar.bz2 samba-ce71a7c9a753b8f2ec45ba35a5c46c78cacf6739.zip |
s3-spoolss: use pidl for _spoolss_ResetPrinter.
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 4a29e1963b..c5d20e0d3d 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -658,27 +658,7 @@ static bool api_spoolss_setprinterdata(pipes_struct *p) ****************************************************************************/ static bool api_spoolss_reset_printer(pipes_struct *p) { - SPOOL_Q_RESETPRINTER q_u; - SPOOL_R_RESETPRINTER 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_resetprinter("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_setprinterdata: unable to unmarshall SPOOL_Q_SETPRINTERDATA.\n")); - return False; - } - - r_u.status = _spoolss_resetprinter(p, &q_u, &r_u); - - if(!spoolss_io_r_resetprinter("", &r_u, rdata, 0)) { - DEBUG(0,("spoolss_io_r_setprinterdata: unable to marshall SPOOL_R_RESETPRINTER.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_RESETPRINTER); } /**************************************************************************** |