summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 15:55:19 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:34 +0200
commitc6e6aee0a0524cf68bb206b339040c4ccf208bb2 (patch)
tree675d8ba748c1acd8374abccbec19feddb6a9623a /source3/rpc_server
parenta36103ca05109e402c4db57f892d61023d0e6104 (diff)
downloadsamba-c6e6aee0a0524cf68bb206b339040c4ccf208bb2.tar.gz
samba-c6e6aee0a0524cf68bb206b339040c4ccf208bb2.tar.bz2
samba-c6e6aee0a0524cf68bb206b339040c4ccf208bb2.zip
s3: Lift the server_messaging_context from print_queue_status
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b7fb70d6b8..55f2001b5b 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1403,7 +1403,8 @@ void update_monitored_printq_cache( void )
&& printer->notify.client_connected )
{
snum = print_queue_snum(printer->sharename);
- print_queue_status( snum, NULL, NULL );
+ print_queue_status(server_messaging_context(), snum,
+ NULL, NULL );
}
printer = printer->next;
@@ -3354,7 +3355,8 @@ static WERROR printer_notify_info(struct pipes_struct *p,
case JOB_NOTIFY_TYPE:
- count = print_queue_status(snum, &queue, &status);
+ count = print_queue_status(p->msg_ctx, snum, &queue,
+ &status);
for (j=0; j<count; j++) {
construct_notify_jobs_info(&queue[j], info,
@@ -6586,7 +6588,7 @@ WERROR _spoolss_EnumJobs(struct pipes_struct *p,
return result;
}
- count = print_queue_status(snum, &queue, &prt_status);
+ count = print_queue_status(p->msg_ctx, snum, &queue, &prt_status);
DEBUGADD(4,("count:[%d], status:[%d], [%s]\n",
count, prt_status.status, prt_status.message));
@@ -8602,7 +8604,7 @@ WERROR _spoolss_GetJob(struct pipes_struct *p,
return result;
}
- count = print_queue_status(snum, &queue, &prt_status);
+ count = print_queue_status(p->msg_ctx, snum, &queue, &prt_status);
DEBUGADD(4,("count:[%d], prt_status:[%d], [%s]\n",
count, prt_status.status, prt_status.message));