Lines Matching defs:str
921 char str[PATH_MAX] = _DEFAULT_DEVICE;
953 while( sanei_config_read( str, sizeof(str), fp)) {
955 DBG( _DBG_SANE_INIT, ">%s<\n", str );
956 if( str[0] == '#') /* ignore line comments */
959 len = strlen(str);
964 if( 0 == strncmp(str, "option", 6)) {
970 decodeVal( str, "warmup", _INT, &config.adj.warmup, &ival);
971 decodeVal( str, "lampOff", _INT, &config.adj.lampOff, &ival);
972 decodeVal( str, "lOffOnEnd", _INT, &config.adj.lampOffOnEnd,&ival);
977 decodeVal( str, "grayGamma", _FLOAT, &config.adj.graygamma,&dval);
978 decodeVal( str, "redGamma", _FLOAT, &config.adj.rgamma, &dval );
979 decodeVal( str, "greenGamma", _FLOAT, &config.adj.ggamma, &dval );
980 decodeVal( str, "blueGamma", _FLOAT, &config.adj.bgamma, &dval );
984 } else if( 0 == strncmp( str, _SECTION, strlen(_SECTION))) {
1002 decodeUsbIDs( str, &tmp );
1007 } else if( SANE_TRUE == decodeDevName( str, config.devName )) {
1012 DBG( _DBG_SANE_INIT, "ignoring >%s<\n", str );