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

Function ppdInstallableConflict

cups/ppd-conflicts.c:636–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 */
635
636int /* O - 1 if conflicting, 0 if not conflicting */
637ppdInstallableConflict(
638 ppd_file_t *ppd, /* I - PPD file */
639 const char *option, /* I - Option */
640 const char *choice) /* I - Choice */
641{
642 cups_array_t *active; /* Active conflicts */
643
644
645 DEBUG_printf(("2ppdInstallableConflict(ppd=%p, option=\"%s\", choice=\"%s\")",
646 ppd, option, choice));
647
648 /*
649 * Range check input...
650 */
651
652 if (!ppd || !option || !choice)
653 return (0);
654
655 /*
656 * Test constraints using the new option...
657 */
658
659 active = ppd_test_constraints(ppd, option, choice, 0, NULL,
660 _PPD_INSTALLABLE_CONSTRAINTS);
661
662 cupsArrayDelete(active);
663
664 return (active != NULL);
665}
666
667
668/*

Callers 2

load_ppdFunction · 0.85
mainFunction · 0.85

Calls 2

ppd_test_constraintsFunction · 0.85
cupsArrayDeleteFunction · 0.85

Tested by 1

mainFunction · 0.68