nwqueue: implement change queue job entry
All checks were successful
Source release / source-package (push) Successful in 47s
All checks were successful
Source release / source-package (push) Successful in 47s
Implement the Queue Change Job Entry endpoint for both the old NCP 17/6d and newer NCP 17/7b variants. Parse the queue job structure, look up the selected job by its job number, and update the mutable job metadata fields while preserving server-managed state such as client identity, entry time, job number, queue position, file name/handle and servicing information. Allow the job creator to update the standard user-changeable fields and allow SUPERVISOR or Q_OPERATORS members to update the operator hold flag as well. Return the documented queue/job/right/servicing completion codes for missing queues, missing jobs, insufficient rights and jobs already being serviced. This only updates NetWare queue metadata. It does not change the existing Q_UNIX_PRINT/lp backend behavior and adds no CUPS dependency.
This commit is contained in:
@@ -1720,11 +1720,13 @@ static void handle_fxx(int gelen, int func)
|
||||
break;
|
||||
|
||||
#if 1
|
||||
case 0x6D: /* Change Queue Job Entry old */
|
||||
case 0x7B: /* Change Queue Job Entry */
|
||||
{
|
||||
uint32 q_id = GET_BE32(rdata);
|
||||
/* uint32 job_id = GET_BE16(rdata+4); */
|
||||
int result = nw_change_queue_job_entry(q_id, rdata+4);
|
||||
int result = nw_change_queue_job_entry(act_c->object_id,
|
||||
q_id, rdata+4,
|
||||
ufunc==0x6D);
|
||||
if (result < 0)
|
||||
completition=(uint8)-result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user