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

Function ppdMarkOption

cups/ppd-mark.c:533–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531 */
532
533int /* O - Number of conflicts */
534ppdMarkOption(ppd_file_t *ppd, /* I - PPD file record */
535 const char *option, /* I - Keyword */
536 const char *choice) /* I - Option name */
537{
538 DEBUG_printf(("ppdMarkOption(ppd=%p, option=\"%s\", choice=\"%s\")",
539 ppd, option, choice));
540
541 /*
542 * Range check input...
543 */
544
545 if (!ppd || !option || !choice)
546 return (0);
547
548 /*
549 * Mark the option...
550 */
551
552 ppd_mark_option(ppd, option, choice);
553
554 /*
555 * Return the number of conflicts...
556 */
557
558 return (ppdConflicts(ppd));
559}
560
561
562/*

Callers 7

do_set_optionsFunction · 0.85
copy_commentsFunction · 0.85
set_pstops_optionsFunction · 0.85
test_rasterFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ppd_handle_mediaFunction · 0.85

Calls 2

ppd_mark_optionFunction · 0.85
ppdConflictsFunction · 0.85

Tested by 3

test_rasterFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68