MCPcopy Create free account
hub / github.com/OpenPrinting/cups / _cupsAppleGetUseLastPrinter

Function _cupsAppleGetUseLastPrinter

cups/dest.c:402–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 */
401
402int /* O - 1 to use last printer, 0 otherwise */
403_cupsAppleGetUseLastPrinter(void)
404{
405 Boolean uselast, /* Use last printer preference value */
406 uselast_set; /* Valid is set? */
407
408
409 if (getenv("CUPS_DISABLE_APPLE_DEFAULT"))
410 return (0);
411
412 uselast = CFPreferencesGetAppBooleanValue(kUseLastPrinter,
413 kCUPSPrintingPrefs,
414 &uselast_set);
415 if (!uselast_set)
416 return (1);
417 else
418 return (uselast);
419}
420
421
422/*

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected