| 382 | */ |
| 383 | |
| 384 | ppd_choice_t * /* O - Pointer to choice or @code NULL@ */ |
| 385 | ppdFindMarkedChoice(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 | /* |