Lines Matching defs:option
11 License, or (at your option) any later version.
268 "Setting this option allows one to test whether a frontend can "
293 SANE_I18N ("Read only test-option"),
630 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
632 DBG (2, "sane_get_option_descriptor: option = %d\n", option);
635 if (option < 0 || option >= NELEMS (sod))
637 return &sod[option];
641 sane_control_option (SANE_Handle handle, SANE_Int option,
650 handle, option, action, value, (void *) info);
658 if (option < 0 || option >= NELEMS (sod))
660 DBG (1, "sane_control_option: option %d < 0 or >= number of options\n",
661 option);
662 return SANE_STATUS_INVAL; /* Unknown option ... */
665 if (!SANE_OPTION_IS_ACTIVE (sod[option].cap))
667 DBG (4, "sane_control_option: option is inactive\n");
674 if (!SANE_OPTION_IS_SETTABLE (sod[option].cap))
676 DBG (4, "sane_control_option: option is not settable\n");
679 status = sanei_constrain_value (sod + option, (void *) &v, &myinfo);
682 switch (option)
693 if (!SANE_OPTION_IS_SETTABLE (sod[option].cap))
695 DBG (4, "sane_control_option: option is not settable\n");
698 status = sanei_constrain_value (sod + option, value, &myinfo);
701 switch (option)
927 switch (option)