Lines Matching defs:job_id

935 papiJobQuery(papi_service_t handle, char *printer, int32_t job_id,
955 if ((handle == NULL) || (printer == NULL) || (job_id < 0))
958 dest = printer_name_from_uri_id(printer, job_id);
959 snprintf(req_id, sizeof (req_id), "%s-%d", dest, job_id);
980 snprintf(req_id, sizeof (req_id), "%d-0", job_id);
990 papiJobMove(papi_service_t handle, char *printer, int32_t job_id,
1000 if ((svc == NULL) || (printer == NULL) || (job_id < 0) ||
1004 queue = printer_name_from_uri_id(printer, job_id);
1005 snprintf(req_id, sizeof (req_id), "%s-%d", queue, job_id);
1035 papiJobCancel(papi_service_t handle, char *printer, int32_t job_id)
1043 if ((svc == NULL) || (printer == NULL) || (job_id < 0))
1046 dest = printer_name_from_uri_id(printer, job_id);
1047 snprintf(req_id, sizeof (req_id), "%s-%d", dest, job_id);
1054 if ((result = authorized(handle, job_id)) != PAPI_OK)
1078 int32_t job_id, int flag)
1086 if ((svc == NULL) || (printer == NULL) || (job_id < 0))
1089 if ((status = authorized(svc, job_id)) != PAPI_OK)
1092 dest = printer_name_from_uri_id(printer, job_id);
1093 status = lpsched_start_change(svc, dest, job_id, &file);
1124 status = lpsched_end_change(svc, dest, job_id);
1130 papiJobHold(papi_service_t handle, char *printer, int32_t job_id)
1132 return (hold_release_job(handle, printer, job_id, 0));
1136 papiJobRelease(papi_service_t handle, char *printer, int32_t job_id)
1138 return (hold_release_job(handle, printer, job_id, 1));
1142 papiJobPromote(papi_service_t handle, char *printer, int32_t job_id)
1144 return (hold_release_job(handle, printer, job_id, 2));
1148 papiJobModify(papi_service_t handle, char *printer, int32_t job_id,
1160 if ((svc == NULL) || (printer == NULL) || (job_id < 0) ||
1167 dest = printer_name_from_uri_id(printer, job_id);
1174 job_id_actual = check_job_id(svc, printer, job_id);
1180 dest, job_id, "no such resource");