Lines Matching defs:option
8 License, or (at your option) any later version.
54 . . - sane_get_option_descriptor() : get option information
55 . . - sane_control_option() : change option values
428 * This function is used to access option descriptors. The function
429 * returns the option descriptor for option number n of the device
431 * valid option. Its value is an integer that specifies the number of
433 * option 0). If n is not a valid option index, the function returns
434 * NULL. The returned option descriptor is guaranteed to remain valid
438 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
443 "sane_get_option_descriptor: \"%s\"\n", scanner->opt[option].name);
445 if ((unsigned) option >= NUM_OPTIONS)
447 return &scanner->opt[option];
452 * Gets or sets an option value.
455 * This function is used to set or inquire the current value of option
457 * the option is controlled is specified by parameter action. The
459 * below. The value of the option is passed through argument val. It
460 * is a pointer to the memory that holds the option value. The memory
461 * area pointed to by v must be big enough to hold the entire option
462 * value (determined by member size in the corresponding option
466 * string option, the string pointed to by argument v may be shorter
467 * since the backend will stop reading the option value upon
473 sane_control_option (SANE_Handle handle, SANE_Int option,
490 if (option >= NUM_OPTIONS)
493 cap = scanner->opt[option].cap;
502 scanner->opt[option].name);
511 switch (option)
557 scanner->opt[option].name);
571 status = sanei_constrain_value (scanner->opt + option, val, info);
585 switch (option)