Lines Matching refs:best
385 cups_device_t *best; /* Best matching device */ in main() local
391 best = NULL, count = 0, sent = 0; in main()
461 if (!best) in main()
462 best = device; in main()
463 else if (_cups_strcasecmp(best->name, device->name) || in main()
464 _cups_strcasecmp(best->domain, device->domain)) in main()
466 unquote(uriName, best->fullName, sizeof(uriName)); in main()
468 if (best->uuid) in main()
471 best->cups_shared ? "/cups?uuid=%s" : "/?uuid=%s", in main()
472 best->uuid); in main()
476 best->cups_shared ? "/cups" : "/"); in main()
478 cupsBackendReport("network", device_uri, best->make_and_model, in main()
479 best->name, best->device_id, NULL); in main()
480 best->sent = 1; in main()
481 best = device; in main()
485 else if (best->priority > device->priority || in main()
486 (best->priority == device->priority && in main()
487 best->type < device->type)) in main()
489 best->sent = 1; in main()
490 best = device; in main()
503 if (best) in main()
505 unquote(uriName, best->fullName, sizeof(uriName)); in main()
507 if (best->uuid) in main()
510 best->cups_shared ? "/cups?uuid=%s" : "/?uuid=%s", in main()
511 best->uuid); in main()
515 best->cups_shared ? "/cups" : "/"); in main()
517 cupsBackendReport("network", device_uri, best->make_and_model, in main()
518 best->name, best->device_id, NULL); in main()
519 best->sent = 1; in main()