Lines Matching defs:option
10 License, or (at your option) any later version.
392 sane_control_option (SANE_Handle handle, SANE_Int option,
403 if (option >= NUM_OPTIONS)
405 cap = s->options_list[option].cap;
410 DBG (1, "sane_control_option %d, get value\n", option);
411 switch (option)
425 *(SANE_Word *) val = s->value[option].w;
429 strcpy (val, s->value[option].s);
435 DBG (1, "sane_control_option %d, set value\n", option);
440 status = sanei_constrain_value (s->options_list + option, val, info);
441 switch (option)
458 s->value[option].w = *(SANE_Word *) val;
461 if (s->value[option].s)
462 free (s->value[option].s);
463 s->value[option].s = strdup (val);
475 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
479 if ((unsigned) option >= NUM_OPTIONS)
481 return (&s->options_list[option]);
661 SANE_Int option;
663 for (option = 0; option < NUM_OPTIONS; ++option)
665 s->options_list[option].size = sizeof (SANE_Word);
666 s->options_list[option].cap =