Lines Matching defs:option
11 License, or (at your option) any later version.
2647 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
2651 DBG (DBG_proc, "sane_get_option_descriptor: enter, option %d\n", option);
2653 if ((unsigned) option >= OPT_NUM_OPTIONS)
2660 return dev->opt + option;
2664 sane_control_option (SANE_Handle handle, SANE_Int option,
2671 DBG (DBG_proc, "sane_control_option: enter, option %d, action %d\n",
2672 option, action);
2684 if (option < 0 || option >= OPT_NUM_OPTIONS)
2689 cap = dev->opt[option].cap;
2698 switch (option)
2713 *(SANE_Word *) val = dev->val[option].w;
2720 strcpy (val, dev->val[option].s);
2728 memcpy (val, dev->val[option].wa, dev->opt[option].size);
2740 DBG (DBG_error, "could not set option, not settable\n");
2744 status = sanei_constrain_value (dev->opt + option, val, info);
2747 DBG (DBG_error, "could not set option, invalid value\n");
2751 switch (option)
2768 dev->val[option].w = *(SANE_Word *) val;
2773 dev->val[option].w = *(SANE_Word *) val;
2778 free (dev->val[option].s);
2779 dev->val[option].s = (SANE_String) strdup (val);
2783 free (dev->val[option].s);
2784 dev->val[option].s = (SANE_String) strdup (val);
2789 if (strcmp (dev->val[option].s, val) == 0)
2936 memcpy (dev->val[option].wa, val, dev->opt[option].size);