Lines Matching defs:option
11 License, or (at your option) any later version.
1438 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1442 DBG (DBG_proc, "sane_get_option_descriptor: enter, option %d\n", option);
1444 if ((unsigned) option >= OPT_NUM_OPTIONS)
1451 return dev->opt + option;
1455 sane_control_option (SANE_Handle handle, SANE_Int option,
1462 DBG (DBG_proc, "sane_control_option: enter, option %d, action %d\n",
1463 option, action);
1475 if (option < 0 || option >= OPT_NUM_OPTIONS)
1480 cap = dev->opt[option].cap;
1489 switch (option)
1503 *(SANE_Word *) val = dev->val[option].w;
1508 strcpy (val, dev->val[option].s);
1514 memcpy (val, dev->val[option].wa, dev->opt[option].size);
1526 DBG (DBG_error, "could not set option, not settable\n");
1530 status = sanei_constrain_value (dev->opt + option, val, info);
1533 DBG (DBG_error, "could not set option, invalid value\n");
1537 switch (option)
1550 dev->val[option].w = *(SANE_Word *) val;
1557 dev->val[option].w = *(SANE_Word *) val;
1607 memcpy (dev->val[option].wa, val, dev->opt[option].size);