1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

s3: Lift the server_messaging_context from print_job_endpage

This commit is contained in:
Volker Lendecke 2010-08-08 17:17:05 +02:00
parent d1f3a2efb7
commit ef208c5571
3 changed files with 6 additions and 5 deletions

View File

@ -144,7 +144,8 @@ WERROR print_job_start(struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
int snum, const char *docname, const char *filename,
struct spoolss_DeviceMode *devmode, uint32_t *_jobid);
void print_job_endpage(int snum, uint32 jobid);
void print_job_endpage(struct messaging_context *msg_ctx,
int snum, uint32 jobid);
NTSTATUS print_job_end(struct messaging_context *msg_ctx, int snum,
uint32 jobid, enum file_close_type close_type);
int print_queue_status(struct messaging_context *msg_ctx, int snum,

View File

@ -2778,7 +2778,8 @@ fail:
Update the number of pages spooled to jobid
****************************************************************************/
void print_job_endpage(int snum, uint32 jobid)
void print_job_endpage(struct messaging_context *msg_ctx,
int snum, uint32 jobid)
{
const char* sharename = lp_const_servicename(snum);
struct printjob *pjob;
@ -2791,8 +2792,7 @@ void print_job_endpage(int snum, uint32 jobid)
return;
pjob->page_count++;
pjob_store(server_event_context(), server_messaging_context(),
sharename, jobid, pjob);
pjob_store(server_event_context(), msg_ctx, sharename, jobid, pjob);
}
/****************************************************************************

View File

@ -5196,7 +5196,7 @@ WERROR _spoolss_EndPagePrinter(struct pipes_struct *p,
return WERR_BADFID;
Printer->page_started = false;
print_job_endpage(snum, Printer->jobid);
print_job_endpage(p->msg_ctx, snum, Printer->jobid);
return WERR_OK;
}