summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:35:56 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:36 +0200
commit7285e0d5dd3f6186a919bbf04a66469d5c1090ea (patch)
tree600a6ebf34413243e5b75a65b68e2c0b5861c9c4 /source3/printing
parent4e4bf13e704f8e2af77cbc5099953380dc0758dc (diff)
downloadsamba-7285e0d5dd3f6186a919bbf04a66469d5c1090ea.tar.gz
samba-7285e0d5dd3f6186a919bbf04a66469d5c1090ea.tar.bz2
samba-7285e0d5dd3f6186a919bbf04a66469d5c1090ea.zip
s3: Lift the server_messaging_context from notify_printer_comment
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 8de79c4c60..2cbe4f5061 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -517,12 +517,14 @@ void notify_printer_driver(struct tevent_context *ev,
snum, strlen(driver_name) + 1, driver_name);
}
-void notify_printer_comment(int snum, const char *comment)
+void notify_printer_comment(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *comment)
{
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_COMMENT,
snum, strlen(comment) + 1, comment);
}