Lines Matching defs:uri
286 * Try finding a printer URI for this printer...
498 * 'cups_get_printer_uri()' - Get the printer-uri-supported attribute for the
519 char uri[HTTP_MAX_URI], /* printer-uri attribute */
527 "device-uri",
529 "printer-uri-supported",
537 * Setup the printer URI...
540 if (httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", name) < HTTP_URI_STATUS_OK)
542 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create printer-uri"), 1);
550 DEBUG_printf(("5cups_get_printer_uri: printer-uri=\"%s\"", uri));
567 * printer-uri
573 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
585 const char *device_uri = NULL; /* device-uri value */
587 if ((attr = ippFindAttribute(response, "device-uri", IPP_TAG_URI)) != NULL)
590 DEBUG_printf(("5cups_get_printer_uri: device-uri=\"%s\"", device_uri));
603 httpSeparateURI(HTTP_URI_CODING_ALL, _httpResolveURI(device_uri, uri, sizeof(uri
684 else if ((attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL)
686 httpSeparateURI(HTTP_URI_CODING_ALL, _httpResolveURI(attr->values[0].string.text, uri, sizeof(uri), _HTTP_RESOLVE_DEFAULT, NULL, NULL), scheme, sizeof(scheme), username, sizeof(username), host, hostsize, port, resource, resourcesize);
693 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No printer-uri found for class"), 1);
709 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No printer-uri found"), 1);
714 DEBUG_puts("5cups_get_printer_uri: Printer URI not found.");