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

Function ppdFindMarkedChoice

cups/ppd-mark.c:384–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 */
383
384ppd_choice_t * /* O - Pointer to choice or @code NULL@ */
385ppdFindMarkedChoice(ppd_file_t *ppd, /* I - PPD file */
386 const char *option) /* I - Keyword/option name */
387{
388 ppd_choice_t key, /* Search key for choice */
389 *marked; /* Marked choice */
390
391
392 DEBUG_printf(("2ppdFindMarkedChoice(ppd=%p, option=\"%s\")", ppd, option));
393
394 if ((key.option = ppdFindOption(ppd, option)) == NULL)
395 {
396 DEBUG_puts("3ppdFindMarkedChoice: Option not found, returning NULL");
397 return (NULL);
398 }
399
400 marked = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key);
401
402 DEBUG_printf(("3ppdFindMarkedChoice: Returning %p(%s)...", marked,
403 marked ? marked->choice : "NULL"));
404
405 return (marked);
406}
407
408
409/*

Callers 12

load_ppd_attributesFunction · 0.85
set_pstops_optionsFunction · 0.85
StartPageFunction · 0.85
EndPageFunction · 0.85
set_printer_optionsFunction · 0.85
_cupsConvertOptionsFunction · 0.85
ppdPageSizeLimitsFunction · 0.85
mainFunction · 0.85
cupsGetConflictsFunction · 0.85
cupsResolveConflictsFunction · 0.85
ppd_handle_mediaFunction · 0.85

Calls 2

ppdFindOptionFunction · 0.85
cupsArrayFindFunction · 0.85

Tested by 1

mainFunction · 0.68