diff options
author | Günther Deschner <gd@samba.org> | 2009-03-14 01:29:56 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-17 11:49:30 +0100 |
commit | aeba6381d3e0ee7f3983d8be4dcdfa0f1015d3ee (patch) | |
tree | e623ba535a3cf5b9bcaf4dafcb15328043e7b7a0 /source3/rpc_server/srv_spoolss.c | |
parent | d77cc437841ea97d350898d36faa0ee2534eceaa (diff) | |
download | samba-aeba6381d3e0ee7f3983d8be4dcdfa0f1015d3ee.tar.gz samba-aeba6381d3e0ee7f3983d8be4dcdfa0f1015d3ee.tar.bz2 samba-aeba6381d3e0ee7f3983d8be4dcdfa0f1015d3ee.zip |
s3-spoolss: use pidl for _spoolss_GetPrinterData.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_spoolss.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index da8220232b..c7ca223ac4 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -74,28 +74,7 @@ static bool api_spoolss_open_printer_ex(pipes_struct *p) static bool api_spoolss_getprinterdata(pipes_struct *p) { - SPOOL_Q_GETPRINTERDATA q_u; - SPOOL_R_GETPRINTERDATA r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* read the stream and fill the struct */ - if (!spoolss_io_q_getprinterdata("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_getprinterdata: unable to unmarshall SPOOL_Q_GETPRINTERDATA.\n")); - return False; - } - - r_u.status = _spoolss_getprinterdata( p, &q_u, &r_u); - - if (!spoolss_io_r_getprinterdata("", &r_u, rdata, 0)) { - DEBUG(0,("spoolss_io_r_getprinterdata: unable to marshall SPOOL_R_GETPRINTERDATA.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_GETPRINTERDATA); } /******************************************************************** |