1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s3: Lift the server_messaging_context from notify_job_submitted

This commit is contained in:
Volker Lendecke 2010-08-08 16:33:05 +02:00
parent aa5fd419b2
commit b71debcca0
3 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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);