summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/notify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 890a20f5a4..b137331137 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -541,12 +541,14 @@ void notify_printer_sharename(struct tevent_context *ev,
snum, strlen(share_name) + 1, share_name);
}
-void notify_printer_printername(int snum, const char *printername)
+void notify_printer_printername(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *printername)
{
const char *sharename = lp_servicename(snum);
send_notify_field_buffer(
- server_event_context(), server_messaging_context(),
+ ev, msg_ctx,
sharename, PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_FIELD_PRINTER_NAME,
snum, strlen(printername) + 1, printername);
}