summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:38:54 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:36 +0200
commitf3313c53078d60a437cfa4bea71995beb223b819 (patch)
treea23bdc187326f3513b45a5fa696e344767b7b83b /source3
parentc427423aeecfc8c123a75079d4398b093ab9bc76 (diff)
downloadsamba-f3313c53078d60a437cfa4bea71995beb223b819.tar.gz
samba-f3313c53078d60a437cfa4bea71995beb223b819.tar.bz2
samba-f3313c53078d60a437cfa4bea71995beb223b819.zip
s3: Lift the server_messaging_context from notify_printer_printername
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h4
-rw-r--r--source3/printing/notify.c6
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
3 files changed, 9 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 5c4f1fb178..0b577762b0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4451,7 +4451,9 @@ void notify_printer_comment(struct tevent_context *ev,
void notify_printer_sharename(struct tevent_context *ev,
struct messaging_context *msg_ctx,
int snum, const char *share_name);
-void notify_printer_printername(int snum, const char *printername);
+void notify_printer_printername(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *printername);
void notify_printer_port(int snum, const char *port_name);
void notify_printer_location(int snum, const char *location);
void notify_printer_byname( const char *printername, uint32 change, const char *value );
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 890a20f5a4..b137331137 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -541,12 +541,14 @@ void notify_printer_sharename(struct tevent_context *ev,
snum, strlen(share_name) + 1, share_name);
}
-void notify_printer_printername(int snum, const char *printername)
+void notify_printer_printername(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *printername)
{
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_PRINTER_NAME,
snum, strlen(printername) + 1, printername);
}
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 911d6b9b17..1c0a69d3fb 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5803,7 +5803,8 @@ static WERROR update_dsspooler(TALLOC_CTX *mem_ctx,
buffer.length);
if (!force_update) {
- notify_printer_printername(snum, p);
+ notify_printer_printername(server_event_context(),
+ msg_ctx, snum, p);
}
}