Lines Matching defs:config
64 #include "../include/sane/config.h"
1134 CnfDef config;
1163 init_config_struct( &config, SANE_TRUE );
1165 init_config_struct( &config, SANE_FALSE );
1173 /* default to _DEFAULT_DEVICE instead of insisting on config file */
1175 return attach( _DEFAULT_DEVICE, &config, 0 );
1194 decodeVal( str, "warmup", _INT, &config.adj.warmup, &ival);
1195 decodeVal( str, "lampOff", _INT, &config.adj.lampOff, &ival);
1196 decodeVal( str, "lOffOnEnd", _INT, &config.adj.lampOffOnEnd,&ival);
1199 decodeVal( str, "mov", _INT, &config.adj.mov, &ival );
1206 if( config.devName[0] != '\0' )
1207 attach( config.devName, &config, 0 );
1210 init_config_struct( &config, SANE_TRUE );
1216 if( config.devName[0] != '\0' )
1217 attach( config.devName, &config, 0 );
1220 init_config_struct( &config, SANE_FALSE );
1223 } else if( SANE_TRUE == decodeDevName( str, config.devName )) {
1232 /* try to attach the last device in the config file... */
1233 if( config.devName[0] != '\0' )
1234 attach( config.devName, &config, 0 );
1316 CnfDef config;
1328 memset( &config, 0, sizeof(CnfDef));
1331 status = attach( devicename, &config, &dev );