• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cups-372.4/cups/cups/

Lines Matching +defs:uri +defs:resolve

267 static const char	*cups_dnssd_resolve(cups_dest_t *dest, const char *uri,
617 const char *uri; /* Printer URI */
652 if ((uri = cupsGetOption("printer-uri-supported", dest->num_options,
665 if (strstr(uri, "._tcp"))
667 if ((uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb,
673 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme),
1317 const char *uri; /* Printer URI */
1341 if ((uri = cupsGetOption("printer-uri-supported", dest->num_options,
1353 if (strstr(uri, "._tcp"))
1355 if ((uri = cups_dnssd_resolve(dest, uri, 5000, NULL, NULL, NULL)) == NULL)
1360 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme),
1369 return (uri);
1411 char uri[1024]; /* printer-uri value */
1423 "device-uri",
1449 "printer-uri-supported"
1468 * printer-uri [for IPP_OP_GET_PRINTER_ATTRIBUTES]
1482 httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL,
1484 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL,
1485 uri);
1536 !strcmp(attr->name, "device-uri") ||
1556 !strcmp(attr->name, "printer-uri-supported"))
3160 uri[1024]; /* Printer URI */
3361 httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri),
3365 DEBUG_printf(("6cups_dnssd_query: printer-uri-supported=\"%s\"", uri));
3367 device->dest.num_options = cupsAddOption("printer-uri-supported", uri,
3384 const char *uri, /* I - Current printer URI */
3391 _cups_dnssd_resolve_t resolve; /* Resolve data */
3398 resolve.cancel = cancel;
3399 gettimeofday(&resolve.end_time, NULL);
3402 resolve.end_time.tv_sec += msec / 1000;
3403 resolve.end_time.tv_usec += (msec % 1000) * 1000;
3405 while (resolve.end_time.tv_usec >= 1000000)
3407 resolve.end_time.tv_sec ++;
3408 resolve.end_time.tv_usec -= 1000000;
3412 resolve.end_time.tv_sec += 75;
3418 if ((uri = _httpResolveURI(uri, tempuri, sizeof(tempuri),
3420 &resolve)) == NULL)
3422 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to resolve printer URI."), 1);
3435 dest->num_options = cupsAddOption("printer-uri-supported", uri,
3438 return (cupsGetOption("printer-uri-supported", dest->num_options,
3450 _cups_dnssd_resolve_t *resolve = (_cups_dnssd_resolve_t *)context;
3459 if (*resolve->cancel)
3468 return (curtime.tv_sec > resolve->end_time.tv_sec ||
3469 (curtime.tv_sec == resolve->end_time.tv_sec &&
3470 curtime.tv_usec > resolve->end_time.tv_usec));