diff options
author | Günther Deschner <gd@samba.org> | 2009-03-09 12:24:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-13 09:25:21 +0100 |
commit | 9b143e6de5c40a225c364b9377af52a8c7f6ca23 (patch) | |
tree | 2f278e29bdbcef68567159a2b08f737435f4a532 /source3/rpc_server/srv_spoolss.c | |
parent | b80e3e572427eae881f38d9726f173952939a8a1 (diff) | |
download | samba-9b143e6de5c40a225c364b9377af52a8c7f6ca23.tar.gz samba-9b143e6de5c40a225c364b9377af52a8c7f6ca23.tar.bz2 samba-9b143e6de5c40a225c364b9377af52a8c7f6ca23.zip |
s3-spoolss: use pidl for _spoolss_GetJob.
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 53c715a150..a03f185be9 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -569,27 +569,7 @@ static bool api_spoolss_enumprintmonitors(pipes_struct *p) static bool api_spoolss_getjob(pipes_struct *p) { - SPOOL_Q_GETJOB q_u; - SPOOL_R_GETJOB 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_getjob("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_getjob: unable to unmarshall SPOOL_Q_GETJOB.\n")); - return False; - } - - r_u.status = _spoolss_getjob(p, &q_u, &r_u); - - if(!spoolss_io_r_getjob("",&r_u,rdata,0)) { - DEBUG(0,("spoolss_io_r_getjob: unable to marshall SPOOL_R_GETJOB.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_GETJOB); } /******************************************************************** |