Lines Matching defs:job
27 /* $Id: job.c 179 2006-07-17 18:24:07Z njacobs $ */
47 papi_job_ticket_t *job_ticket, char **files, papi_job_t *job)
55 (job == NULL))
60 gettext("papiJobSubmit: job ticket not supported"));
67 if ((*job = j = (job_t *)calloc(1, sizeof (*j))) == NULL) {
73 /* before creating a control file add the job-name */
76 "job-name", files[0]);
87 /* send the job to the server */
99 papi_job_ticket_t *job_ticket, char **files, papi_job_t *job)
102 job_ticket, files, job));
128 /* create the job */
129 if ((s->job = calloc(1, sizeof (*(s->job)))) == NULL)
133 "job-name", "standard input");
136 lpd_job_add_attributes(svc, attributes, &metadata, &s->job->attributes);
144 &(s->job->attributes));
145 status = lpd_submit_job(svc, metadata, &(s->job->attributes),
155 if (s->job->attributes)
156 papiAttributeListFree(s->job->attributes);
157 s->job->attributes = NULL;
159 papiAttributeListFromString(&(s->job->attributes),
186 papiJobStreamClose(papi_service_t handle, papi_stream_t stream, papi_job_t *job)
194 if ((svc == NULL) || (stream == NULL) || (job == NULL))
205 lpd_job_add_files(svc, s->job->attributes, files, &s->metadata,
206 &(s->job->attributes));
208 &(s->job->attributes), NULL);
217 *job = s->job;
224 char **job_attributes, papi_job_t *job)
233 status = lpd_find_job_info(svc, job_id, (job_t **)job);
254 papiJobGetAttributeList(papi_job_t job)
256 job_t *j = (job_t *)job;
265 papiJobGetPrinterName(papi_job_t job)
268 job_t *j = (job_t *)job;
278 papiJobGetId(papi_job_t job)
281 job_t *j = (job_t *)job;
285 "job-id", &result);
291 papiJobFree(papi_job_t job)
293 job_t *j = (job_t *)job;