Lines Matching refs:locations

131 static CFStringRef	appleGetPrinter(CFArrayRef locations,
319 CFArrayRef locations; /* Location array */ in _cupsAppleCopyDefaultPrinter() local
350 if ((locations = appleCopyLocations()) == NULL) in _cupsAppleCopyDefaultPrinter()
365 (int)CFArrayGetCount(locations))); in _cupsAppleCopyDefaultPrinter()
367 if ((locprinter = appleGetPrinter(locations, network, NULL)) != NULL) in _cupsAppleCopyDefaultPrinter()
371 CFRelease(locations); in _cupsAppleCopyDefaultPrinter()
432 CFArrayRef locations; /* Old locations array */ in _cupsAppleSetDefaultPrinter() local
453 if ((locations = appleCopyLocations()) != NULL) in _cupsAppleSetDefaultPrinter()
454 locprinter = appleGetPrinter(locations, network, &locindex); in _cupsAppleSetDefaultPrinter()
467 if (locations) in _cupsAppleSetDefaultPrinter()
470 locations); in _cupsAppleSetDefaultPrinter()
520 if (locations) in _cupsAppleSetDefaultPrinter()
521 CFRelease(locations); in _cupsAppleSetDefaultPrinter()
2511 CFArrayRef locations; /* Location array */ in appleCopyLocations() local
2518 if ((locations = CFPreferencesCopyAppValue(kLastUsedPrintersKey, in appleCopyLocations()
2522 if (CFGetTypeID(locations) != CFArrayGetTypeID()) in appleCopyLocations()
2524 CFRelease(locations); in appleCopyLocations()
2528 return (locations); in appleCopyLocations()
2634 appleGetPrinter(CFArrayRef locations, /* I - Location array */ in appleGetPrinter() argument
2645 for (i = 0, count = CFArrayGetCount(locations); i < count; i ++) in appleGetPrinter()
2646 if ((location = CFArrayGetValueAtIndex(locations, i)) != NULL && in appleGetPrinter()