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

Function cups_apple_get_boolean

cups/usersys.c:1122–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120 */
1121
1122static int /* O - 1 if set, 0 otherwise */
1123cups_apple_get_boolean(
1124 CFStringRef key, /* I - Key (name) */
1125 int *value) /* O - Boolean value */
1126{
1127 Boolean bval, /* Preference value */
1128 bval_set; /* Value is set? */
1129
1130
1131 bval = CFPreferencesGetAppBooleanValue(key, kCUPSPrintingPrefs, &bval_set);
1132
1133 if (bval_set)
1134 *value = (int)bval;
1135
1136 return ((int)bval_set);
1137}
1138# endif /* HAVE_TLS */
1139
1140

Callers 1

cups_init_client_confFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected