Lines Matching defs:option

11    License, or (at your option) any later version.
1832 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1836 DBG (DBG_proc, "sane_get_option_descriptor: enter, option %d\n", option);
1838 if ((unsigned) option >= OPT_NUM_OPTIONS)
1845 return dev->opt + option;
1849 sane_control_option (SANE_Handle handle, SANE_Int option,
1860 DBG (DBG_proc, "sane_control_option: enter, option %d, action %d\n",
1861 option, action);
1873 if (option < 0 || option >= OPT_NUM_OPTIONS)
1878 cap = dev->opt[option].cap;
1884 name = dev->opt[option].name;
1892 switch (option)
1905 *(SANE_Word *) val = dev->val[option].w;
1918 strcpy (val, dev->val[option].s);
1930 DBG (DBG_error, "could not set option, not settable\n");
1934 status = sanei_constrain_value (dev->opt + option, val, info);
1937 DBG (DBG_error, "could not set option, invalid value\n");
1941 switch (option)
1952 dev->val[option].w = *(SANE_Word *) val;
1976 dev->val[option].w = *(SANE_Word *) val;
1990 dev->val[option].w = *(SANE_Word *) val;
1999 free (dev->val[option].s);
2000 dev->val[option].s = (SANE_String) strdup (val);
2004 if (strcmp (dev->val[option].s, val) == 0)
2067 free (dev->val[option].s);
2068 dev->val[option].s = (SANE_String) strdup (val);
2083 if (strcmp (dev->val[option].s, val) == 0)
2120 if (strcmp (dev->val[option].s, val) == 0)
2123 free (dev->val[option].s);
2124 dev->val[option].s = (SANE_Char *) strdup (val);
2126 /* If the threshold is not set to none, some option must
2134 if (strcmp (dev->val[option].s, automatic_threshold_list[0]) == 0)