summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 22:30:23 +0100
committerGünther Deschner <gd@samba.org>2009-02-09 22:48:14 +0100
commit0d281b76a987442a91003eb3b6a2f659b4a1c61c (patch)
treed90c7f10f97ae1fc388b7eedc0dfa143c380df0a /source3/rpc_server
parent43463fcc1eef6b0a674e0e5079341523e2406a5a (diff)
downloadsamba-0d281b76a987442a91003eb3b6a2f659b4a1c61c.tar.gz
samba-0d281b76a987442a91003eb3b6a2f659b4a1c61c.tar.bz2
samba-0d281b76a987442a91003eb3b6a2f659b4a1c61c.zip
s3-spoolss: use pidl for _spoolss_ScheduleJob.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss.c22
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c19
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
****************************************************************/