diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 17:28:16 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 18:09:38 +0200 |
commit | 788498d2ff1b07cc94250395dd1da6bb63be2454 (patch) | |
tree | f7202e7d7a0d3662487de7e746b832b01d105e68 /source3/rpc_server | |
parent | 02c008613f6cd6fc12ac014cb311ca0285a30068 (diff) | |
download | samba-788498d2ff1b07cc94250395dd1da6bb63be2454.tar.gz samba-788498d2ff1b07cc94250395dd1da6bb63be2454.tar.bz2 samba-788498d2ff1b07cc94250395dd1da6bb63be2454.zip |
s3: Lift the server_messaging_context from construct_notify_printer_info
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 64e13e6d65..fb68fd26b7 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -3096,7 +3096,8 @@ static void construct_info_data(struct spoolss_Notify *info_data, * ********************************************************************/ -static bool construct_notify_printer_info(Printer_entry *print_hnd, +static bool construct_notify_printer_info(struct messaging_context *msg_ctx, + Printer_entry *print_hnd, struct spoolss_NotifyInfo *info, struct spoolss_PrinterInfo2 *pinfo2, int snum, @@ -3142,9 +3143,8 @@ static bool construct_notify_printer_info(Printer_entry *print_hnd, notify_info_data_table[j].name, snum, pinfo2->printername)); - notify_info_data_table[j].fn(server_messaging_context(), - snum, current_data, queue, - pinfo2, mem_ctx); + notify_info_data_table[j].fn(msg_ctx, snum, current_data, + queue, pinfo2, mem_ctx); info->count++; } @@ -3293,7 +3293,8 @@ static WERROR printserver_notify_info(struct pipes_struct *p, } - construct_notify_printer_info(Printer, info, + construct_notify_printer_info(p->msg_ctx, + Printer, info, pinfo2, snum, &option_type, snum, mem_ctx); @@ -3377,7 +3378,8 @@ static WERROR printer_notify_info(struct pipes_struct *p, switch (option_type.type) { case PRINTER_NOTIFY_TYPE: - if (construct_notify_printer_info(Printer, info, + if (construct_notify_printer_info(p->msg_ctx, + Printer, info, pinfo2, snum, &option_type, id, mem_ctx)) { |