mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: Lift the smbd_messaging_context from print_queue_purge
This commit is contained in:
parent
9723f33ef5
commit
cc280f0cd1
@ -148,6 +148,7 @@ WERROR print_queue_pause(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum);
|
||||
WERROR print_queue_resume(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum);
|
||||
WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum);
|
||||
WERROR print_queue_purge(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum);
|
||||
|
||||
#endif /* PRINTING_H_ */
|
||||
|
@ -3107,7 +3107,8 @@ WERROR print_queue_resume(struct auth_serversupplied_info *server_info,
|
||||
Purge a queue - implemented by deleting all jobs that we can delete.
|
||||
****************************************************************************/
|
||||
|
||||
WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum)
|
||||
WERROR print_queue_purge(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum)
|
||||
{
|
||||
print_queue_struct *queue;
|
||||
print_status_struct status;
|
||||
@ -3118,7 +3119,7 @@ WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum)
|
||||
print_queue_update(snum, True);
|
||||
|
||||
can_job_admin = print_access_check(server_info,
|
||||
smbd_messaging_context(),
|
||||
msg_ctx,
|
||||
snum,
|
||||
JOB_ACCESS_ADMINISTER);
|
||||
njobs = print_queue_status(snum, &queue, &status);
|
||||
|
@ -5369,7 +5369,7 @@ static WERROR control_printer(struct policy_handle *handle, uint32_t command,
|
||||
errcode = print_queue_resume(p->server_info, p->msg_ctx, snum);
|
||||
break;
|
||||
case SPOOLSS_PRINTER_CONTROL_PURGE:
|
||||
errcode = print_queue_purge(p->server_info, snum);
|
||||
errcode = print_queue_purge(p->server_info, p->msg_ctx, snum);
|
||||
break;
|
||||
default:
|
||||
return WERR_UNKNOWN_LEVEL;
|
||||
|
Loading…
Reference in New Issue
Block a user