Home | History | Annotate | Download | only in cups

Lines Matching refs:jobs

46  * Pass @code CUPS_JOBID_ALL@ to cancel all jobs or @code CUPS_JOBID_CURRENT@
57 int job_id) /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */
67 * Canceled jobs remain in the job history while purged jobs are removed
70 * Pass @code CUPS_JOBID_ALL@ to cancel all jobs or @code CUPS_JOBID_CURRENT@
82 int job_id, /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */
115 * [purge-job] or [purge-jobs]
132 snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id);
143 ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", 0);
149 ippDelete(cupsDoRequest(http, request, "/jobs/"));
266 cupsFreeJobs(int num_jobs, /* I - Number of jobs */
267 cups_job_t *jobs) /* I - Jobs */
273 if (num_jobs <= 0 || !jobs)
276 for (i = num_jobs, job = jobs; i > 0; i --, job ++)
284 free(jobs);
401 * 'cupsGetJobs()' - Get the jobs from the default server.
403 * A "whichjobs" value of @code CUPS_WHICHJOBS_ALL@ returns all jobs regardless
404 * of state, while @code CUPS_WHICHJOBS_ACTIVE@ returns jobs that are
406 * jobs that are stopped, canceled, aborted, or completed.
411 int /* O - Number of jobs */
412 cupsGetJobs(cups_job_t **jobs, /* O - Job data */
413 const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */
418 * Return the jobs...
421 return (cupsGetJobs2(CUPS_HTTP_DEFAULT, jobs, name, myjobs, whichjobs));
427 * 'cupsGetJobs2()' - Get the jobs from the specified server.
429 * A "whichjobs" value of @code CUPS_WHICHJOBS_ALL@ returns all jobs regardless
430 * of state, while @code CUPS_WHICHJOBS_ACTIVE@ returns jobs that are
432 * jobs that are stopped, canceled, aborted, or completed.
437 int /* O - Number of jobs */
439 cups_job_t **jobs, /* O - Job data */
440 const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */
444 int n; /* Number of jobs */
460 char uri[HTTP_MAX_URI]; /* URI for jobs */
482 if (!jobs)
520 * which-jobs
521 * my-jobs
534 ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1);
538 "which-jobs", NULL, "completed");
541 "which-jobs", NULL, "all");
552 *jobs = NULL;
646 temp = realloc(*jobs, sizeof(cups_job_t) * (size_t)(n + 1));
656 cupsFreeJobs(n, *jobs);
657 *jobs = NULL;
664 *jobs = temp;