s3: Lift the server_messaging_context from notify_printer_comment
authorVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 14:35:56 +0000 (16:35 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 16:09:36 +0000 (18:09 +0200)
source3/include/proto.h
source3/printing/notify.c
source3/rpc_server/srv_spoolss_nt.c

index a484530a59df0b428231abfb1daf05f9347be53a..0716c4f042ba806c34c75141528951247048af9e 100644 (file)
@@ -4445,7 +4445,9 @@ void notify_job_submitted(struct tevent_context *ev,
 void notify_printer_driver(struct tevent_context *ev,
                           struct messaging_context *msg_ctx,
                           int snum, const char *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);
 void notify_printer_sharename(int snum, const char *share_name);
 void notify_printer_printername(int snum, const char *printername);
 void notify_printer_port(int snum, const char *port_name);
index 8de79c4c604e817ceef1fa8dc70cb47b256489b1..2cbe4f5061fe0c256626c4a6827cd08aa08a65b3 100644 (file)
@@ -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);
 }
index fbe769b396988b284f4600085a3c58b1ebd94c70..acae8fc6f59fff2a0173e2fbeb8ceb6f1de69dd2 100644 (file)
@@ -5757,7 +5757,8 @@ static WERROR update_dsspooler(TALLOC_CTX *mem_ctx,
                                          buffer.length);
 
                if (!force_update) {
-                       notify_printer_comment(snum, printer->comment);
+                       notify_printer_comment(server_event_context(), msg_ctx,
+                                              snum, printer->comment);
                }
        }