diff options
-rw-r--r-- | source3/rpc_server/srv_spoolss.c | 22 | ||||
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 19 |
2 files changed, 6 insertions, 35 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index ac338a9bb9..44551e391b 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -503,27 +503,7 @@ static bool api_spoolss_enumjobs(pipes_struct *p) static bool api_spoolss_schedulejob(pipes_struct *p) { - SPOOL_Q_SCHEDULEJOB q_u; - SPOOL_R_SCHEDULEJOB 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_schedulejob("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_schedulejob: unable to unmarshall SPOOL_Q_SCHEDULEJOB.\n")); - return False; - } - - r_u.status = _spoolss_schedulejob(p, &q_u, &r_u); - - if(!spoolss_io_r_schedulejob("",&r_u,rdata,0)) { - DEBUG(0,("spoolss_io_r_schedulejob: unable to marshall SPOOL_R_SCHEDULEJOB.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_SCHEDULEJOB); } /**************************************************************************** diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 2550adeb3a..bbbf414e11 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6872,10 +6872,12 @@ WERROR _spoolss_enumjobs( pipes_struct *p, SPOOL_Q_ENUMJOBS *q_u, SPOOL_R_ENUMJO return wret; } -/**************************************************************************** -****************************************************************************/ +/**************************************************************** + _spoolss_ScheduleJob +****************************************************************/ -WERROR _spoolss_schedulejob( pipes_struct *p, SPOOL_Q_SCHEDULEJOB *q_u, SPOOL_R_SCHEDULEJOB *r_u) +WERROR _spoolss_ScheduleJob(pipes_struct *p, + struct spoolss_ScheduleJob *r) { return WERR_OK; } @@ -10168,17 +10170,6 @@ WERROR _spoolss_ReadPrinter(pipes_struct *p, } /**************************************************************** - _spoolss_ScheduleJob -****************************************************************/ - -WERROR _spoolss_ScheduleJob(pipes_struct *p, - struct spoolss_ScheduleJob *r) -{ - p->rng_fault_state = true; - return WERR_NOT_SUPPORTED; -} - -/**************************************************************** _spoolss_GetPrinterData ****************************************************************/ |