Home
last modified time | relevance | path

Searched refs:newlocations (Results 1 – 1 of 1) sorted by relevance

/external/libcups/cups/
Ddest.c460 CFMutableArrayRef newlocations; /* New locations array */ in _cupsAppleSetDefaultPrinter() local
494 newlocations = CFArrayCreateMutableCopy(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
498 CFArrayRemoveValueAtIndex(newlocations, locindex); in _cupsAppleSetDefaultPrinter()
501 newlocations = CFArrayCreateMutable(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
508 if (newlocation && newlocations) in _cupsAppleSetDefaultPrinter()
516 CFArrayInsertValueAtIndex(newlocations, 0, newlocation); in _cupsAppleSetDefaultPrinter()
522 while (CFArrayGetCount(newlocations) > 10) in _cupsAppleSetDefaultPrinter()
523 CFArrayRemoveValueAtIndex(newlocations, 10); in _cupsAppleSetDefaultPrinter()
529 CFPreferencesSetAppValue(kLastUsedPrintersKey, newlocations, in _cupsAppleSetDefaultPrinter()
538 if (newlocations) in _cupsAppleSetDefaultPrinter()
[all …]