summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:37:21 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:36 +0200
commitc427423aeecfc8c123a75079d4398b093ab9bc76 (patch)
treecdf9aafdece29caf233dc42b0fa7c432d22f8d76 /source3/printing
parent7285e0d5dd3f6186a919bbf04a66469d5c1090ea (diff)
downloadsamba-c427423aeecfc8c123a75079d4398b093ab9bc76.tar.gz
samba-c427423aeecfc8c123a75079d4398b093ab9bc76.tar.bz2
samba-c427423aeecfc8c123a75079d4398b093ab9bc76.zip
s3: Lift the server_messaging_context from notify_printer_sharename
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 2cbe4f5061..890a20f5a4 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -529,12 +529,14 @@ void notify_printer_comment(struct tevent_context *ev,
snum, strlen(comment) + 1, comment);
}
-void notify_printer_sharename(int snum, const char *share_name)
+void notify_printer_sharename(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *share_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_SHARE_NAME,
snum, strlen(share_name) + 1, share_name);
}