summaryrefslogtreecommitdiff
path: root/source3/printing/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:42:59 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:36 +0200
commit128976e01121c877cb815e60504fb6a5391255a2 (patch)
tree2e0373d1be916e2e032c61f837048a667714e061 /source3/printing/notify.c
parentd62c73b799baf908269835f2d69b1a2094ef23c6 (diff)
downloadsamba-128976e01121c877cb815e60504fb6a5391255a2.tar.gz
samba-128976e01121c877cb815e60504fb6a5391255a2.tar.bz2
samba-128976e01121c877cb815e60504fb6a5391255a2.zip
s3: Lift the server_messaging_context from notify_printer_byname
Diffstat (limited to 'source3/printing/notify.c')
-rw-r--r--source3/printing/notify.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 0615bebb8c..9f07f6cba6 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -577,7 +577,10 @@ void notify_printer_location(struct tevent_context *ev,
snum, strlen(location) + 1, location);
}
-void notify_printer_byname( const char *printername, uint32 change, const char *value )
+void notify_printer_byname(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *printername, uint32 change,
+ const char *value)
{
int snum = print_queue_snum(printername);
int type = PRINTER_NOTIFY_TYPE;
@@ -586,7 +589,7 @@ void notify_printer_byname( const char *printername, uint32 change, const char *
return;
send_notify_field_buffer(
- server_event_context(), server_messaging_context(),
+ ev, msg_ctx,
printername, type, change, snum, strlen(value)+1, value );
}