summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:35:50 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:25 +0200
commit7d08c25f989df14131567d055a9c922e27247c14 (patch)
tree2a6073c732fca44bdfb5eaf73c403c6a9a2fd4a7 /source3/printing
parent61837197d8e0583d1ced7edd57353a72699495bb (diff)
downloadsamba-7d08c25f989df14131567d055a9c922e27247c14.tar.gz
samba-7d08c25f989df14131567d055a9c922e27247c14.tar.bz2
samba-7d08c25f989df14131567d055a9c922e27247c14.zip
s3: Lift the smbd_messaging_context from nt_printer_publish
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing_ads.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c
index 42570389c4..e981aca5e8 100644
--- a/source3/printing/nt_printing_ads.c
+++ b/source3/printing/nt_printing_ads.c
@@ -237,6 +237,7 @@ static WERROR nt_printer_unpublish_ads(ADS_STRUCT *ads,
WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
struct spoolss_PrinterInfo2 *pinfo2,
int action)
{
@@ -266,8 +267,7 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
sinfo2->attributes = pinfo2->attributes;
- win_rc = winreg_update_printer(mem_ctx, server_info,
- smbd_messaging_context(),
+ win_rc = winreg_update_printer(mem_ctx, server_info, msg_ctx,
pinfo2->sharename, info2_mask,
sinfo2, NULL, NULL);
if (!W_ERROR_IS_OK(win_rc)) {
@@ -299,8 +299,7 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
switch (action) {
case DSPRINT_PUBLISH:
case DSPRINT_UPDATE:
- win_rc = nt_printer_publish_ads(smbd_messaging_context(),
- ads, pinfo2);
+ win_rc = nt_printer_publish_ads(msg_ctx, ads, pinfo2);
break;
case DSPRINT_UNPUBLISH:
win_rc = nt_printer_unpublish_ads(ads, pinfo2->sharename);