diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 14:33:45 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:25 +0200 |
commit | 61837197d8e0583d1ced7edd57353a72699495bb (patch) | |
tree | be9062692347d23196d29338e4d88bf8575978e4 /source3 | |
parent | 8c665f6da62f7b181bc975212ec5e486af401a44 (diff) | |
download | samba-61837197d8e0583d1ced7edd57353a72699495bb.tar.gz samba-61837197d8e0583d1ced7edd57353a72699495bb.tar.bz2 samba-61837197d8e0583d1ced7edd57353a72699495bb.zip |
s3: Lift the smbd_messaging_context from nt_printer_publish_ads
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing_ads.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index 78535a89f6..42570389c4 100644 --- a/source3/printing/nt_printing_ads.c +++ b/source3/printing/nt_printing_ads.c @@ -82,7 +82,8 @@ done: talloc_free(tmp_ctx); } -static WERROR nt_printer_publish_ads(ADS_STRUCT *ads, +static WERROR nt_printer_publish_ads(struct messaging_context *msg_ctx, + ADS_STRUCT *ads, struct spoolss_PrinterInfo2 *pinfo2) { ADS_STATUS ads_rc; @@ -188,7 +189,7 @@ static WERROR nt_printer_publish_ads(ADS_STRUCT *ads, ZERO_STRUCT(guid); ads_pull_guid(ads, res, &guid); ads_msgfree(ads, res); - store_printer_guid(smbd_messaging_context(), printer, guid); + store_printer_guid(msg_ctx, printer, guid); } TALLOC_FREE(ctx); @@ -298,7 +299,8 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx, switch (action) { case DSPRINT_PUBLISH: case DSPRINT_UPDATE: - win_rc = nt_printer_publish_ads(ads, pinfo2); + win_rc = nt_printer_publish_ads(smbd_messaging_context(), + ads, pinfo2); break; case DSPRINT_UNPUBLISH: win_rc = nt_printer_unpublish_ads(ads, pinfo2->sharename); @@ -364,7 +366,8 @@ WERROR check_published_printers(void) } if (pinfo2->attributes & PRINTER_ATTRIBUTE_PUBLISHED) { - nt_printer_publish_ads(ads, pinfo2); + nt_printer_publish_ads(smbd_messaging_context(), + ads, pinfo2); } TALLOC_FREE(pinfo2); |