Lines Matching defs:option

13    License, or (at your option) any later version.
233 SANE_Int option;
241 for (option = 0; option < NUM_OPTIONS; ++option)
243 s->opt[option].size = sizeof (SANE_Word);
244 s->opt[option].cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
755 if (strcmp (word, "option") == 0)
820 DBG (3, "sane_init: config file line %d: option "
841 DBG (3, "sane_init: config file line %d: option "
863 DBG (3, "sane_init: config file line %d: option "
884 DBG (3, "sane_init: config file line %d: option "
894 DBG (3, "sane_init: config file line %d: option "
1157 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1161 if ((unsigned) option >= NUM_OPTIONS)
1163 DBG (5, "sane_get_option_descriptor: option = %s (%d)\n",
1164 s->opt[option].name, option);
1165 return s->opt + option;
1169 sane_control_option (SANE_Handle handle, SANE_Int option,
1177 DBG (5, "sane_control_option: start: action = %s, option = %s (%d)\n",
1181 s->opt[option].name, option);
1193 if (option >= NUM_OPTIONS || option < 0)
1195 DBG (1, "sane_control_option: option %d >= NUM_OPTIONS || option < 0\n",
1196 option);
1200 cap = s->opt[option].cap;
1204 DBG (2, "sane_control_option: option %d is inactive\n", option);
1210 switch (option)
1222 *(SANE_Word *) val = s->val[option].w;
1229 memcpy (val, s->val[option].wa, s->opt[option].size);
1233 strcpy (val, s->val[option].s);
1236 DBG (2, "sane_control_option: can't get unknown option %d\n",
1237 option);
1244 DBG (2, "sane_control_option: option %d is not settable\n", option);
1248 status = sanei_constrain_value (s->opt + option, val, &myinfo);
1257 switch (option)
1265 s->val[option].w = *(SANE_Word *) val;
1270 s->val[option].w = *(SANE_Word *) val;
1274 s->val[option].w = *(SANE_Bool *) val;
1281 memcpy (s->val[option].wa, val, s->opt[option].size);
1282 check_gamma_table (s->val[option].wa);
1316 if (s->val[option].s)
1317 free (s->val[option].s);
1318 s->val[option].s = strdup (val);
1347 DBG (2, "sane_control_option: can't set unknown option %d\n",
1348 option);
1353 DBG (2, "sane_control_option: unknown action %d for option %d\n",
1354 action, option);