Lines Matching defs:option

23  * License, or (at your option) any later version.
867 * @param opt - string that keeps the option name to check src for
871 * @return The function returns SANE_TRUE if the option has been found,
880 /* skip the option string */
881 name = (const char*)&src[strlen("option")];
883 /* get the name of the option */
891 DBG( _DBG_SANE_INIT, "Decoding option >%s<\n", opt );
895 /* assign the default value for this option... */
913 /* assign the default value for this option... */
937 * @param src - string that keeps the option name to check src for
1189 if( 0 == strncmp(str, "option", 6)) {
1418 SANE_Status sane_control_option( SANE_Handle handle, SANE_Int option,
1431 if((option < 0) || (option >= NUM_OPTIONS))
1440 switch (option) {
1449 *(SANE_Word *)value = s->val[option].w;
1455 (s->val[option].w << SANE_FIXED_SCALE_SHIFT);
1462 s->opt[option].constraint.string_list[s->val[option].w]);
1470 memcpy( value, s->val[option].wa, s->opt[option].size );
1479 status = sanei_constrain_value( s->opt + option, value, info );
1484 if( SANE_CONSTRAINT_STRING_LIST == s->opt[option].constraint_type ) {
1486 optval = search_string_list( s->opt[option].constraint.string_list,
1492 switch (option) {
1509 s->val[option].w = (SANE_Word)best;
1528 s->val[option].w = *(SANE_Word *)value;
1534 s->val[option].w = *(SANE_Word *)value;
1546 if( SANE_TRUE == s->val[option].w ) {
1574 s->val[option].w =
1628 s->val[option].w = optval - s->opt[option].constraint.string_list;
1632 s->val[option].w = optval - s->opt[option].constraint.string_list;
1637 if( s->val[option].w == 0 ) {
1660 if( s->val[option].w == 1 ) {
1699 memcpy( s->val[option].wa, value, s->opt[option].size );
1718 /** according to the option number, return a pointer to a descriptor
1721 sane_get_option_descriptor( SANE_Handle handle, SANE_Int option )
1725 if((option < 0) || (option >= NUM_OPTIONS))
1728 return &(s->opt[option]);