summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);