| 634 | */ |
| 635 | |
| 636 | int /* O - 1 if conflicting, 0 if not conflicting */ |
| 637 | ppdInstallableConflict( |
| 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 | /* |