summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 17:11:23 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:37 +0200
commitde108248729cbed4464f0fb68b6f4b2d2bbdcc1e (patch)
tree03f24ee42a188198d0ff9d65f832929bf9a1250e /source3/printing
parent3b5b74c7dd931815e7b3763ad1cbf47c3710f60d (diff)
downloadsamba-de108248729cbed4464f0fb68b6f4b2d2bbdcc1e.tar.gz
samba-de108248729cbed4464f0fb68b6f4b2d2bbdcc1e.tar.bz2
samba-de108248729cbed4464f0fb68b6f4b2d2bbdcc1e.zip
s3: Lift the server_messaging_context from print_job_set_name
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index fe87b9bf6c..ff1394f028 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -1974,7 +1974,9 @@ struct spoolss_DeviceMode *print_job_devmode(const char* sharename, uint32 jobid
Set the name of a job. Only possible for owner.
****************************************************************************/
-bool print_job_set_name(const char *sharename, uint32 jobid, const char *name)
+bool print_job_set_name(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *sharename, uint32 jobid, const char *name)
{
struct printjob *pjob;
@@ -1983,8 +1985,7 @@ bool print_job_set_name(const char *sharename, uint32 jobid, const char *name)
return False;
fstrcpy(pjob->jobname, name);
- return pjob_store(server_event_context(), server_messaging_context(),
- sharename, jobid, pjob);
+ return pjob_store(ev, msg_ctx, sharename, jobid, pjob);
}
/****************************************************************************