Lines Matching refs:request

172     ipp_t *request = NULL; // IPP request object  in _fill_job()  local
179 request = ippNewRequest(ipp_op); in _fill_job()
180 if (request == NULL) { in _fill_job()
181 return request; in _fill_job()
184 if (set_ipp_version(request, printer_uri, NULL, IPP_VERSION_RESOLVED) != 0) { in _fill_job()
185 ippDelete(request); in _fill_job()
191 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, in _fill_job()
194 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, in _fill_job()
196 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
226 ippAddCollection(request, IPP_TAG_OPERATION, "document-format-details", in _fill_job()
236 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
241 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
249 ippAddBoolean(request, IPP_TAG_JOB, "pdf-fit-to-page", 1); // true in _fill_job()
255 ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "orientation-requested", in _fill_job()
259 ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "orientation-requested", in _fill_job()
265 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
269 ippAddResolution(request, IPP_TAG_JOB, "pclm-source-resolution", in _fill_job()
275 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
281 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
287 ippAddBoolean(request, IPP_TAG_JOB, "margins-pre-applied", 1); // true in _fill_job()
293 ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies", job_params->num_copies); in _fill_job()
298 ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", in _fill_job()
302 ippAddResolution(request, IPP_TAG_JOB, "printer-resolution", IPP_RES_PER_INCH, in _fill_job()
305 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_SIDES_TAG, NULL, in _fill_job()
308 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_SIDES_TAG, NULL, in _fill_job()
311 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_SIDES_TAG, NULL, in _fill_job()
316 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_OUTPUT_MODE_TAG, NULL, in _fill_job()
319 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_OUTPUT_MODE_TAG, NULL, in _fill_job()
388 ippAddCollections(request, IPP_TAG_JOB, "media-col", col_index + 1, (const ipp_t **) col); in _fill_job()
393 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media", NULL, in _fill_job()
398 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) { in _fill_job()
402 return request; in _fill_job()
410 ipp_t *request = NULL; in _validate_job() local
433 request = _fill_job(IPP_VALIDATE_JOB, ipp_job->printer_uri, job_params); in _validate_job()
438 if ((response = ipp_doCupsRequest(ipp_job->http, request, ipp_job->http_resource, in _validate_job()
466 ippDelete(request); in _validate_job()
477 ipp_t *request = NULL; in _start_job() local
495 request = _fill_job(IPP_PRINT_JOB, ipp_job->printer_uri, job_params); in _start_job()
497 if (request == NULL) { in _start_job()
504 ipp_job->status = cupsSendRequest(ipp_job->http, request, ipp_job->http_resource, 0); in _start_job()
514 ippDelete(request); in _start_job()
520 ippDelete(request); in _start_job()