From d62c73b799baf908269835f2d69b1a2094ef23c6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Aug 2010 16:41:31 +0200 Subject: s3: Lift the server_messaging_context from notify_printer_location --- source3/printing/notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/notify.c b/source3/printing/notify.c index fae93463df..0615bebb8c 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -565,12 +565,14 @@ void notify_printer_port(struct tevent_context *ev, snum, strlen(port_name) + 1, port_name); } -void notify_printer_location(int snum, const char *location) +void notify_printer_location(struct tevent_context *ev, + struct messaging_context *msg_ctx, + int snum, const char *location) { 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_LOCATION, snum, strlen(location) + 1, location); } -- cgit