• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/printing/

Lines Matching refs:queue

34    SMB view of the print queue 
39 reading the print queue involves two steps:
683 print_queue_struct *queue;
710 /* remove a unix job if it isn't in the system queue any more */
713 uint32 u_jobid = (ts->queue[i].job + UNIX_JOB_START);
746 uint32 curr_jobid = print_parse_jobid(ts->queue[i].fs_file);
752 /* The job isn't in the system queue - we have to assume it has
776 /* FIXME!!! This is the only place where queue->job
778 ts->queue[i].job = jobid;
779 ts->queue[i].size = pjob.size;
780 ts->queue[i].page_count = pjob.page_count;
781 ts->queue[i].status = pjob.status;
782 ts->queue[i].priority = 1;
783 ts->queue[i].time = pjob.starttime;
784 fstrcpy(ts->queue[i].fs_user, pjob.user);
785 fstrcpy(ts->queue[i].fs_file, pjob.jobname);
793 Check if the print queue has been updated recently enough.
905 Store the sorted queue representation for later portmon retrieval.
912 print_queue_struct *queue = pts->queue;
927 (uint32)queue[i].job,
928 (uint32)queue[i].size,
929 (uint32)queue[i].page_count,
930 (uint32)queue[i].status,
931 (uint32)queue[i].priority,
932 (uint32)queue[i].time,
933 queue[i].fs_user,
934 queue[i].fs_file);
944 (uint32)queue[i].job,
945 (uint32)queue[i].size,
946 (uint32)queue[i].page_count,
947 (uint32)queue[i].status,
948 (uint32)queue[i].priority,
949 (uint32)queue[i].time,
950 queue[i].fs_user,
951 queue[i].fs_file);
993 Check if the print queue has been updated recently enough.
1010 * Invalidate the queue for 3 reasons.
1011 * (1). last queue scan time == -1.
1012 * (2). Current time - last queue scan time > allowed cache time.
1013 * (3). last queue scan time > current time + MAX_CACHE_VALID_TIME (1 hour by default).
1025 DEBUG(4, ("print_cache_expired: cache expired for queue %s "
1031 queue. Give the pending message one minute to clear and
1057 main work for updating the lpq cahe for a printer queue
1065 print_queue_struct *queue = NULL;
1087 /* get the current queue using the appropriate interface */
1092 lpq_command, &queue, &status);
1094 DEBUG(3, ("print_queue_update_internal: %d job%s in queue for %s\n",
1097 /* Sort the queue by submission time otherwise they are displayed
1100 qsort(queue, qcount, sizeof(print_queue_struct),
1105 and doesn't exist in the system queue is considered finished
1117 uint32 jobid = print_parse_jobid(queue[i].fs_file);
1121 print_unix_job(sharename, &queue[i], jobid);
1129 with jobs in the queue. All we can do is treat them
1131 print_unix_job(sharename, &queue[i], jobid);
1135 pjob->sysjob = queue[i].job;
1136 pjob->status = queue[i].status;
1144 system queue */
1145 tstruct.queue = queue;
1154 /* Store the linearised queue, max jobs only. */
1157 SAFE_FREE(tstruct.queue);
1166 DEBUG(10,("print_queue_update_internal: queue status change %d jobs -> %d jobs for printer %s\n",
1169 /* store the new queue status structure */
1187 /* clear the msg pending record for this queue */
1204 Update the internal database from the system print queue for a queue.
1205 obtain a lock on the print queue before proceeding (needed when mutiple
1237 /* Lock the queue for the database update */
1301 DEBUG(0,("print_queue_receive: Got invalid print queue update message\n"));
1373 update the internal database from the system print queue for a queue
1395 * Make sure that the background queue process exists.
1400 DEBUG(4,("print_queue_update: updating queue [%s] myself\n", sharename));
1701 Set the place in the queue for a job.
1783 Delete a print job - don't update queue.
2054 Get the queue status - do not update if db is out of date.
2087 Determine the number of jobs in a queue.
2100 /* also fetch the queue status */
2130 DEBUG(0, ("allocate_print_jobid: failed to fetch INFO/nextjob for print queue %s\n",
2153 DEBUG(0, ("allocate_print_jobid: failed to allocate a print job for queue %s\n",
2249 /* Insure the maximum queue size is not violated */
2251 DEBUG(3, ("print_job_start: Queue %s number of jobs (%d) larger than max printjobs per queue (%d).\n",
2433 print_queue_struct *queue = NULL;
2455 /* Get the stored queue data. */
2471 /* Allocate the queue size. */
2475 if ((queue = SMB_MALLOC_ARRAY(print_queue_struct, qcount + extra_count)) == NULL)
2478 /* Retrieve the linearised queue data. */
2489 queue[i].fs_user,
2490 queue[i].fs_file);
2491 queue[i].job = qjob;
2492 queue[i].size = qsize;
2493 queue[i].page_count = qpage_count;
2494 queue[i].status = qstatus;
2495 queue[i].priority = qpriority;
2496 queue[i].time = qtime;
2515 queue[total_count].job = jobid;
2516 queue[total_count].size = pjob->size;
2517 queue[total_count].page_count = pjob->page_count;
2518 queue[total_count].status = pjob->status;
2519 queue[total_count].priority = 1;
2520 queue[total_count].time = pjob->starttime;
2521 fstrcpy(queue[total_count].fs_user, pjob->user);
2522 fstrcpy(queue[total_count].fs_file, pjob->jobname);
2526 /* Sort the queue by submission time otherwise they are displayed
2529 qsort(queue, total_count, sizeof(print_queue_struct), QSORT_CAST(printjob_comp));
2536 *ppqueue = queue;
2549 Get a printer queue listing.
2550 set queue = NULL and status = NULL if you just want to update the cache
2580 * Fetch the queue status. We must do this first, as there may
2581 * be no jobs in the queue.
2599 * Now, fetch the print queue information. We first count the number
2600 * of entries, and then only retrieve the queue if necessary.
2613 Pause a queue.
2649 Resume a queue.
2685 Purge a queue - implemented by deleting all jobs that we can delete.
2690 print_queue_struct *queue;
2699 njobs = print_queue_status(snum, &queue, &status);
2705 BOOL owner = is_owner(user, snum, queue[i].job);
2708 print_job_delete1(snum, queue[i].job);
2718 SAFE_FREE(queue);