Lines Matching defs:option
69 setvalue(SANE_Handle handle, SANE_Int option, void *value, SANE_Int *info);
2165 sane_get_option_descriptor(SANE_Handle handle, SANE_Int option)
2169 if (option < 0 || option >= NUM_OPTIONS)
2172 return s->opt + option;
2248 getvalue(SANE_Handle handle, SANE_Int option, void *value)
2251 SANE_Option_Descriptor *sopt = &(s->opt[option]);
2252 Option_Value *sval = &(s->val[option]);
2254 DBG(17, "%s: option = %d\n", __func__, option);
2256 switch (option) {
2282 setvalue(SANE_Handle handle, SANE_Int option, void *value, SANE_Int *info)
2285 SANE_Option_Descriptor *sopt = &(s->opt[option]);
2286 Option_Value *sval = &(s->val[option]);
2293 DBG(17, "** %s: option = %d, value = %p\n", __func__, option, value);
2317 switch (option) {
2340 if (option == OPT_BR_X)
2344 if (option == OPT_BR_Y)
2348 if (option == OPT_TL_X)
2352 if (option == OPT_TL_Y)
2420 sane_control_option(SANE_Handle handle, SANE_Int option, SANE_Action action,
2423 DBG(17, "** %s: action = %x, option = %d\n", __func__, action, option);
2425 if (option < 0 || option >= NUM_OPTIONS)
2433 return getvalue(handle, option, value);
2436 return setvalue(handle, option, value, info);