summaryrefslogtreecommitdiff
path: root/source3/printing/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:40:08 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:36 +0200
commit83c4c04121addc39ae7b13001545ed303b8adf1c (patch)
treea89be288289fafe29d07851f4b7e8c0047967a20 /source3/printing/notify.c
parentf3313c53078d60a437cfa4bea71995beb223b819 (diff)
downloadsamba-83c4c04121addc39ae7b13001545ed303b8adf1c.tar.gz
samba-83c4c04121addc39ae7b13001545ed303b8adf1c.tar.bz2
samba-83c4c04121addc39ae7b13001545ed303b8adf1c.zip
s3: Lift the server_messaging_context from notify_printer_port
Diffstat (limited to 'source3/printing/notify.c')
-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 b137331137..fae93463df 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -553,12 +553,14 @@ void notify_printer_printername(struct tevent_context *ev,
snum, strlen(printername) + 1, printername);
}
-void notify_printer_port(int snum, const char *port_name)
+void notify_printer_port(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *port_name)
{
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_PORT_NAME,
snum, strlen(port_name) + 1, port_name);
}