Lines Matching defs:option
8 License, or (at your option) any later version.
245 /* I should make this into an option */
639 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
644 if ((unsigned) option >= NUM_OPTIONS)
648 return (s->opt + option);
652 sane_control_option (SANE_Handle handle, SANE_Int option,
665 if (option >= NUM_OPTIONS)
668 cap = s->opt[option].cap;
674 switch (option)
686 *(SANE_Word *) val = s->val[option].w;
691 strcpy (val, s->val[option].s);
700 status = sanei_constrain_value (s->opt + option, val, info);
704 switch (option)
713 if (info && s->val[option].w != *(SANE_Word *) val)
719 s->val[option].w = *(SANE_Word *) val;
723 if (info && strcmp (s->val[option].s, (SANE_String) val))
725 if (s->val[option].s)
726 free (s->val[option].s);
727 s->val[option].s = strdup (val);