summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 16:34:44 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:35 +0200
commit4e4bf13e704f8e2af77cbc5099953380dc0758dc (patch)
tree75dd2215d1310b258da7074080b7c8b250295905 /source3
parentb71debcca0bc7adc99787ceee028e3ef3a0cb267 (diff)
downloadsamba-4e4bf13e704f8e2af77cbc5099953380dc0758dc.tar.gz
samba-4e4bf13e704f8e2af77cbc5099953380dc0758dc.tar.bz2
samba-4e4bf13e704f8e2af77cbc5099953380dc0758dc.zip
s3: Lift the server_messaging_context from notify_printer_driver
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 2efde2e82d..a484530a59 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4442,7 +4442,9 @@ void notify_job_submitted(struct tevent_context *ev,
struct messaging_context *msg_ctx,
const char *sharename, uint32 jobid,
time_t submitted);
-void notify_printer_driver(int snum, const char *driver_name);
+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_sharename(int snum, const char *share_name);
void notify_printer_printername(int snum, const char *printername);
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 5cac9d40d3..8de79c4c60 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -505,12 +505,14 @@ void notify_job_submitted(struct tevent_context *ev,
jobid, sizeof(submitted), (char *)&submitted);
}
-void notify_printer_driver(int snum, const char *driver_name)
+void notify_printer_driver(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ int snum, const char *driver_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_DRIVER_NAME,
snum, strlen(driver_name) + 1, driver_name);
}
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 55f2001b5b..fbe769b396 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5739,7 +5739,8 @@ static WERROR update_dsspooler(TALLOC_CTX *mem_ctx,
DEBUG(10,("update_printer: changing driver [%s]! Sending event!\n",
printer->drivername));
- notify_printer_driver(snum, printer->drivername);
+ notify_printer_driver(server_event_context(), msg_ctx,
+ snum, printer->drivername);
}
}