Lines Matching refs:NULL
43 .send_data = _send_data, .end_job = _end_job, .destroy = _destroy, .enable_timeout = NULL,
65 if (ipp_job == NULL) { in ipp_get_print_ifc()
66 return NULL; in ipp_get_print_ifc()
83 if (this_p == NULL) { in _init()
88 if (ipp_job->http != NULL) { in _init()
92 if ((printer_uri == NULL) || (strlen(printer_uri) == 0)) { in _init()
101 ipp_scheme, NULL, printer_address, ippPortNumber, "%s", printer_uri); in _init()
104 ipp_job->http = httpConnect2(printer_address, ippPortNumber, NULL, AF_UNSPEC, in _init()
105 HTTP_ENCRYPTION_ALWAYS, 1, HTTP_TIMEOUT_MILLIS, NULL); in _init()
108 if (ipp_job->http == NULL) { in _init()
109 ipp_job->http = httpConnect2(printer_address, ippPortNumber, NULL, AF_UNSPEC, in _init()
110 HTTP_ENCRYPTION_REQUIRED, 1, HTTP_TIMEOUT_MILLIS, NULL); in _init()
113 ipp_job->http = httpConnect2(printer_address, ippPortNumber, NULL, AF_UNSPEC, in _init()
114 HTTP_ENCRYPTION_IF_REQUESTED, 1, HTTP_TIMEOUT_MILLIS, NULL); in _init()
117 httpSetTimeout(ipp_job->http, DEFAULT_IPP_TIMEOUT, NULL, 0); in _init()
125 if (this_p == NULL) { in _destroy()
130 if (ipp_job->http != NULL) { in _destroy()
175 ipp_t *request = NULL; // IPP request object in _fill_job()
180 if (job_params == NULL) return NULL; in _fill_job()
183 if (request == NULL) { in _fill_job()
187 if (set_ipp_version(request, printer_uri, NULL, IPP_VERSION_RESOLVED) != 0) { in _fill_job()
189 return NULL; in _fill_job()
194 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, in _fill_job()
197 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, in _fill_job()
199 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
212 "document-source-application-name", NULL, g_appName); in _fill_job()
216 "document-source-application-version", NULL, g_appVersion); in _fill_job()
220 "document-source-os-name", NULL, g_osName); in _fill_job()
226 "document-source-os-version", NULL, version); in _fill_job()
239 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
244 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
268 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
278 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, in _fill_job()
284 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", 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()
314 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_SIDES_TAG, NULL, in _fill_job()
319 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_OUTPUT_MODE_TAG, NULL, in _fill_job()
322 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, IPP_OUTPUT_MODE_TAG, NULL, in _fill_job()
331 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-source", NULL, in _fill_job()
335 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-source", NULL, in _fill_job()
356 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, in _fill_job()
360 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, in _fill_job()
368 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, in _fill_job()
372 ippAddString(col[col_index], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, in _fill_job()
379 const char *mediaSizeName = NULL; in _fill_job()
383 if ((job_params->media_size_name) && (mediaSizeName != NULL)) { in _fill_job()
384 ippAddString(mediaSize, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-size-name", NULL, in _fill_job()
400 ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media", NULL, in _fill_job()
417 ipp_t *request = NULL; in _validate_job()
422 if (this_p == NULL) { in _validate_job()
426 if (job_params == NULL) { in _validate_job()
431 if (ipp_job->http == NULL) { in _validate_job()
435 ipp_job->useragent = NULL; in _validate_job()
436 if ((job_params->useragent != NULL) && (strlen(job_params->useragent) > 0)) { in _validate_job()
442 if (ipp_job->useragent != NULL) { in _validate_job()
447 == NULL) { in _validate_job()
484 ipp_t *request = NULL; in _start_job()
491 if (this_p == NULL) { in _start_job()
498 ipp_job->useragent = NULL; in _start_job()
499 if ((job_params->useragent != NULL) && (strlen(job_params->useragent) > 0)) { in _start_job()
504 if (request == NULL) { in _start_job()
508 if (ipp_job->useragent != NULL) { in _start_job()
537 if (this_p == NULL) { in _send_data()
542 if (ipp_job->http == NULL) { in _send_data()
551 if (ipp_job->useragent != NULL) { in _send_data()
570 if (this_p == NULL) { in _end_job()
576 if (ipp_job->http == NULL) { in _end_job()
582 if (ipp_job->useragent != NULL) { in _end_job()
595 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { in _end_job()
602 if (response != NULL) { in _end_job()
609 if (strcmp(ippGetString(attrptr, i, NULL), "job-canceled-at-device") in _end_job()