Lines Matching defs:option
10 License, or (at your option) any later version.
1626 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1630 DBG (DBG_proc, "sane_get_option_descriptor: enter, option %d\n", option);
1632 if ((unsigned) option >= OPT_NUM_OPTIONS)
1639 return dev->opt + option;
1643 sane_control_option (SANE_Handle handle, SANE_Int option,
1651 DBG (DBG_proc, "sane_control_option: enter, option %d, action %d\n",
1652 option, action);
1664 if (option < 0 || option >= OPT_NUM_OPTIONS)
1669 cap = dev->opt[option].cap;
1675 name = dev->opt[option].name;
1683 switch (option)
1695 *(SANE_Word *) val = dev->val[option].w;
1701 strcpy (val, dev->val[option].s);
1709 memcpy (val, dev->val[option].wa, dev->opt[option].size);
1721 DBG (DBG_error, "could not set option, not settable\n");
1725 status = sanei_constrain_value (dev->opt + option, val, info);
1728 DBG (DBG_error, "could not set option, invalid value\n");
1732 switch (option)
1746 dev->val[option].w = *(SANE_Word *) val;
1751 dev->val[option].w = *(SANE_Word *) val;
1756 free (dev->val[option].s);
1757 dev->val[option].s = (SANE_String) strdup (val);
1762 if (strcmp (dev->val[option].s, val) == 0)
1816 memcpy (dev->val[option].wa, val, dev->opt[option].size);