summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:33:05 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:35 +0200
commitb71debcca0bc7adc99787ceee028e3ef3a0cb267 (patch)
treec474e9f2261df44ea493079ce3c0baacb9c82219
parentaa5fd419b27b7c52eccc6c129b17d606e4635b3e (diff)
downloadsamba-b71debcca0bc7adc99787ceee028e3ef3a0cb267.tar.gz
samba-b71debcca0bc7adc99787ceee028e3ef3a0cb267.tar.bz2
samba-b71debcca0bc7adc99787ceee028e3ef3a0cb267.zip
s3: Lift the server_messaging_context from notify_job_submitted
-rw-r--r--source3/include/proto.h4
-rw-r--r--source3/printing/notify.c6
-rw-r--r--source3/printing/printing.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index e1784ebdac..2efde2e82d 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4438,7 +4438,9 @@ void notify_job_username(struct tevent_context *ev,
void notify_job_name(struct tevent_context *ev,
struct messaging_context *msg_ctx,
const char *sharename, uint32 jobid, char *name);
-void notify_job_submitted(const char *sharename, uint32 jobid,
+void notify_job_submitted(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *sharename, uint32 jobid,
time_t submitted);
void notify_printer_driver(int snum, const char *driver_name);
void notify_printer_comment(int snum, const char *comment);
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 97d59c5318..5cac9d40d3 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -494,11 +494,13 @@ void notify_job_name(struct tevent_context *ev,
jobid, strlen(name) + 1, name);
}
-void notify_job_submitted(const char *sharename, uint32 jobid,
+void notify_job_submitted(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *sharename, uint32 jobid,
time_t submitted)
{
send_notify_field_buffer(
- server_event_context(), server_messaging_context(),
+ ev, msg_ctx,
sharename, JOB_NOTIFY_TYPE, JOB_NOTIFY_FIELD_SUBMITTED,
jobid, sizeof(submitted), (char *)&submitted);
}
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 093d3b7416..22330256a1 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -576,7 +576,9 @@ static void pjob_store_notify(const char* sharename, uint32 jobid, struct printj
--jerry (i'll feel dirty for this) */
if (new_job) {
- notify_job_submitted(sharename, jobid, new_data->starttime);
+ notify_job_submitted(server_event_context(),
+ server_messaging_context(),
+ sharename, jobid, new_data->starttime);
notify_job_username(server_event_context(),
server_messaging_context(),
sharename, jobid, new_data->user);