Lines Matching defs:option

11    License, or (at your option) any later version.
1189 /* Second hand dependencies of mode option */
1459 " This option is active for halftone/Grayscale modes only.";
1636 s->opt[OPT_LED].desc ="This option controls the setting of the ambler LED.";
1645 s->opt[OPT_CCD].desc ="This option controls the power to the CCD array.";
1894 if (strncmp (dev_name, "option", 6) == 0
2027 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
2031 if ((unsigned) option >= NUM_OPTIONS)
2033 return s->opt + option;
2037 sane_control_option (SANE_Handle handle, SANE_Int option,
2045 DBG (FLOW_CONTROL, "(%s): Entering on control_option for option %s (%d).\n",
2047 s->opt[option].name, option);
2050 switch (s->opt[option].type)
2054 s->val[option].s : (char *) val);
2060 v1 = SANE_UNFIX (s->val[option].w);
2070 ? s->val[option].w : *(SANE_Int *) val);
2081 if (option >= NUM_OPTIONS)
2084 cap = s->opt[option].cap;
2092 switch (option)
2122 *(SANE_Word *) val = s->val[option].w;
2131 memcpy (val, s->val[option].wa, s->opt[option].size);
2141 status = sanei_constrain_value (s->opt + option, s->val[option].s,
2150 strcpy (val, s->val[option].s);
2166 status = sanei_constrain_value (s->opt + option, val, info);
2172 switch (option)
2181 s->val[option].w = *(SANE_Word *) val;
2206 s->val[option].w = *(SANE_Word *) val;
2213 if (s->val[option].s)
2214 free (s->val[option].s);
2215 s->val[option].s = strdup (val);
2220 s->val[option].w = *(SANE_Bool *) val;
2229 memcpy (s->val[option].wa, val, s->opt[option].size);
2238 if (s->val[option].s)
2239 free (s->val[option].s);
2240 s->val[option].s = strdup (val);
2253 s->val[option].w = *(SANE_Bool *) val;
2268 s->val[option].w = *(SANE_Bool *) val;
2317 if (s->val[option].s)
2318 free (s->val[option].s);
2319 s->val[option].s = strdup (val);
2327 if (s->val[option].s)
2328 free (s->val[option].s);
2329 s->val[option].s = strdup (val);