diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 16:16:37 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 18:09:34 +0200 |
commit | 49d18478fd952b360221852a0bc0e2f4f6427aea (patch) | |
tree | 44addc6355d12064c2da923aa46795a47762e755 /source3/printing | |
parent | 30de2f735b160c0a3d311748066c73421f7a484d (diff) | |
download | samba-49d18478fd952b360221852a0bc0e2f4f6427aea.tar.gz samba-49d18478fd952b360221852a0bc0e2f4f6427aea.tar.bz2 samba-49d18478fd952b360221852a0bc0e2f4f6427aea.zip |
s3: Lift the server_messaging_context from notify_printer_status_byname
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/notify.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 5e5f0294ce..65151e9b05 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -404,15 +404,15 @@ static void send_notify_field_buffer(struct tevent_context *ev, /* Send a message that the printer status has changed */ -void notify_printer_status_byname(const char *sharename, uint32 status) +void notify_printer_status_byname(struct tevent_context *ev, + struct messaging_context *msg_ctx, + const char *sharename, uint32 status) { /* Printer status stored in value1 */ int snum = print_queue_snum(sharename); - send_notify_field_values(server_event_context(), - server_messaging_context(), - sharename, PRINTER_NOTIFY_TYPE, + send_notify_field_values(ev, msg_ctx, sharename, PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_FIELD_STATUS, snum, status, 0, 0); } @@ -422,7 +422,9 @@ void notify_printer_status(int snum, uint32 status) const char *sharename = lp_servicename(snum); if (sharename) - notify_printer_status_byname(sharename, status); + notify_printer_status_byname(server_event_context(), + server_messaging_context(), + sharename, status); } void notify_job_status_byname(const char *sharename, uint32 jobid, uint32 status, |