1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-spoolss: use pidl for _spoolss_SetJob.

Guenther
This commit is contained in:
Günther Deschner 2009-02-10 00:21:26 +01:00
parent 2ede56f3c0
commit e4b5e67566
2 changed files with 9 additions and 38 deletions

View File

@ -491,27 +491,7 @@ static bool api_spoolss_schedulejob(pipes_struct *p)
static bool api_spoolss_setjob(pipes_struct *p)
{
SPOOL_Q_SETJOB q_u;
SPOOL_R_SETJOB 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_setjob("", &q_u, data, 0)) {
DEBUG(0,("spoolss_io_q_setjob: unable to unmarshall SPOOL_Q_SETJOB.\n"));
return False;
}
r_u.status = _spoolss_setjob(p, &q_u, &r_u);
if(!spoolss_io_r_setjob("",&r_u,rdata,0)) {
DEBUG(0,("spoolss_io_r_setjob: unable to marshall SPOOL_R_SETJOB.\n"));
return False;
}
return True;
return proxy_spoolss_call(p, NDR_SPOOLSS_SETJOB);
}
/****************************************************************************

View File

@ -6957,14 +6957,16 @@ WERROR _spoolss_ScheduleJob(pipes_struct *p,
return WERR_OK;
}
/****************************************************************************
****************************************************************************/
/****************************************************************
_spoolss_SetJob
****************************************************************/
WERROR _spoolss_setjob(pipes_struct *p, SPOOL_Q_SETJOB *q_u, SPOOL_R_SETJOB *r_u)
WERROR _spoolss_SetJob(pipes_struct *p,
struct spoolss_SetJob *r)
{
POLICY_HND *handle = &q_u->handle;
uint32 jobid = q_u->jobid;
uint32 command = q_u->command;
POLICY_HND *handle = r->in.handle;
uint32 jobid = r->in.job_id;
uint32 command = r->in.command;
int snum;
WERROR errcode = WERR_BADFUNC;
@ -10090,17 +10092,6 @@ WERROR _spoolss_OpenPrinter(pipes_struct *p,
return WERR_NOT_SUPPORTED;
}
/****************************************************************
_spoolss_SetJob
****************************************************************/
WERROR _spoolss_SetJob(pipes_struct *p,
struct spoolss_SetJob *r)
{
p->rng_fault_state = true;
return WERR_NOT_SUPPORTED;
}
/****************************************************************
_spoolss_GetJob
****************************************************************/