Lines Matching defs:job
66 "job-class", "job-hold-until", "job-host", "job-name",
67 "job-originating-user-name", "job-printer",
68 "job-sheets", "lp-charset", "lp-modes", "number-up",
70 "pr-indent", "pr-title", "pr-width", "job-priority",
71 "requesting-user-name", "job-originating-host-name",
79 "job-printer", &r->destination);
92 if (papiAttributeListGetInteger(attributes, NULL, "job-priority", &i)
140 "job-originating-host-name", &host);
142 "job-host", &host);
144 "job-originating-user-name", &user);
157 papiAttributeListGetString(attributes, NULL, "job-hold-until", &s);
202 papiAttributeListGetString(attributes, NULL, "job-sheets", &s);
208 papiAttributeListGetLPString(attributes, "job-class", &class);
209 papiAttributeListGetLPString(attributes, "job-name", &job_name);
309 "job-state", 0x0800); /* notifying user */
311 "job-state-reasons", "job-notifying");
314 "job-state", 0x0001); /* held */
316 "job-state-reasons", "job-hold-until-specified");
319 "job-state", 0x0040); /* job cancelled */
321 "job-state-reasons", "job-canceled-by-user");
324 "job-state", 0x0010); /* finished printing job */
326 "job-state-reasons", "job-complete");
329 "job-state", 0x0008); /* printing job */
331 "job-state-reasons", "job-printing");
334 "job-state", 0x2000); /* held by admin */
336 "job-state-reasons", "job-hold-until-specified");
339 "job-state", 0x0004); /* filtered */
341 "job-state-reasons", "job-filtered");
344 "job-state", 0x0020); /* job held for changing */
346 "job-state-reasons", "job-held-for-change");
349 "job-state", 0x0002); /* being filtered */
351 "job-state-reasons", "job-being-filtered");
354 "job-state", 0x4000); /* else */
356 "job-state-reasons", "job-queued");
362 "job-hold-until",
378 "job-originating-user-name", user);
380 "job-originating-host-name", host + 1);
384 "job-originating-user-name", user);
416 "job-sheets", tmp);
430 "job-priority",
447 "job-name", r->title);
470 job_status_to_attributes(job_t *job, char *req_id, char *user, char *slabel,
477 lpsched_user_to_job_attributes(&job->attributes, user);
478 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
479 "job-k-octets", size/1024);
480 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
481 "job-octets", size);
483 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
484 "job-id", atoi(++p));
488 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE,
489 "job-uri", buf);
492 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE,
493 "job-printer-uri", buf);
494 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
495 "job-printer-up-time", time(NULL));
496 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE,
498 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE,
500 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_REPLACE,
503 lpsched_request_outcome_to_attributes(&job->attributes, state);
505 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
507 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_REPLACE,
509 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_REPLACE,
511 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
512 "lpsched-job-state", state);
513 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE,
515 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_REPLACE,
517 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_EXCL,
518 "job-name", file);
519 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_EXCL,
529 detailed_error(svc, gettext("unable to read job data: %s"),