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

Function _ppdCacheGetOutputBin

cups/ppd-cache.c:2497–2522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495 */
2496
2497const char * /* O - PPD OutputBin or NULL */
2498_ppdCacheGetOutputBin(
2499 _ppd_cache_t *pc, /* I - PPD cache and mapping data */
2500 const char *output_bin) /* I - Keyword string */
2501{
2502 int i; /* Looping var */
2503
2504
2505 /*
2506 * Range check input...
2507 */
2508
2509 if (!pc || !output_bin)
2510 return (NULL);
2511
2512 /*
2513 * Look up the OutputBin string...
2514 */
2515
2516
2517 for (i = 0; i < pc->num_bins; i ++)
2518 if (!_cups_strcasecmp(output_bin, pc->bins[i].pwg) || !_cups_strcasecmp(output_bin, pc->bins[i].ppd))
2519 return (pc->bins[i].ppd);
2520
2521 return (NULL);
2522}
2523
2524
2525/*

Callers 3

get_optionsFunction · 0.85
get_optionsFunction · 0.85
cupsMarkOptionsFunction · 0.85

Calls 1

_cups_strcasecmpFunction · 0.85

Tested by

no test coverage detected