Lines Matching defs:job
28 /* $Id: job.c 148 2006-04-25 16:54:17Z njacobs $ */
47 papiJobFree(papi_job_t job)
49 job_t *tmp = (job_t *)job;
71 papiJobGetAttributeList(papi_job_t job)
74 job_t *j = job;
83 papiJobGetPrinterName(papi_job_t job)
86 job_t *j = job;
96 papiJobGetId(papi_job_t job)
99 job_t *j = job;
103 "job-id", &result);
109 papiJobGetJobTicket(papi_job_t job)
120 papi_attribute_t **operational = NULL, **job = NULL;
122 "job-name", "ipp-attribute-fidelity", "document-name",
124 "job-k-octets", "job-impressions", "job-media-sheets", NULL
133 /* split up the attributes into operational and job attributes */
135 &operational, &job);
142 /* add the job attributes group to the request */
143 if (job != NULL) {
145 * Add job-originating-host-name to attributes
150 papiAttributeListGetString(job, NULL,
151 "job-originating-host-name", &hostname);
157 papiAttributeListAddString(&job, PAPI_ATTR_EXCL,
158 "job-originating-host-name", host);
162 "job-attributes-group", job);
163 papiAttributeListFree(job);
202 char **files, papi_job_t *job,
214 if ((svc == NULL) || (printer == NULL) || (job == NULL))
280 if ((*job = j = calloc(1, sizeof (*j))) == NULL)
285 * add the job-name
289 "job-name", files[0]);
310 /* retrieve the job attributes */
312 "job-attributes-group", &op);
319 "job-id", &id);
337 papi_job_ticket_t *job_ticket, char **files, papi_job_t *job)
340 job_ticket, files, job, _WITH_DATA));
346 papi_job_ticket_t *job_ticket, char **files, papi_job_t *job)
349 job_ticket, files, job, _BY_REFERENCE));
355 papi_job_ticket_t *job_ticket, char **files, papi_job_t *job)
358 job_ticket, files, job, _VALIDATE));
379 "job-name", "standard input");
381 /* create job request */
430 papi_stream_t stream, papi_job_t *job)
438 if ((svc == NULL) || (stream == NULL) || (job == NULL))
441 if ((*job = j = calloc(1, sizeof (*j))) == NULL)
464 "job-attributes-group", &op);
475 papi_job_t *job)
490 if ((*job = j = calloc(1, sizeof (*j))) == NULL)
513 "job-attributes-group", &op);
614 "job-printer-uri", destination);
616 "job-attributes-group", op);
628 papi_attribute_t **attributes, papi_job_t *job)
639 if ((*job = j = calloc(1, sizeof (*j))) == NULL)
655 "job-attributes-group", attributes);
661 "job-attributes-group", &op);