diff options
author | Günther Deschner <gd@samba.org> | 2009-03-12 10:57:13 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-13 09:25:25 +0100 |
commit | 1ceb298ed62be9a40d1e323003e1a9916d5688db (patch) | |
tree | f3f5d73fe711ce49d2d44bb923c20d8dec54a071 /source3/rpc_server/srv_spoolss.c | |
parent | aaae578d0e5d555a55ea44a02c1a27a20ea314e2 (diff) | |
download | samba-1ceb298ed62be9a40d1e323003e1a9916d5688db.tar.gz samba-1ceb298ed62be9a40d1e323003e1a9916d5688db.tar.bz2 samba-1ceb298ed62be9a40d1e323003e1a9916d5688db.zip |
s3-spoolss: use pidl for _spoolss_GetPrinter.
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 1e9e5fda32..da8220232b 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -201,27 +201,7 @@ static bool api_spoolss_enumprinters(pipes_struct *p) static bool api_spoolss_getprinter(pipes_struct *p) { - SPOOL_Q_GETPRINTER q_u; - SPOOL_R_GETPRINTER 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_getprinter("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_getprinter: unable to unmarshall SPOOL_Q_GETPRINTER.\n")); - return False; - } - - r_u.status = _spoolss_getprinter(p, &q_u, &r_u); - - if(!spoolss_io_r_getprinter("",&r_u,rdata,0)) { - DEBUG(0,("spoolss_io_r_getprinter: unable to marshall SPOOL_R_GETPRINTER.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_GETPRINTER); } /******************************************************************** |