[sane-devel] Default path for USB device .conf files

Frank Zago fzago@austin.rr.com
Fri, 21 Jun 2002 17:02:40 -0500


Henning Meier-Geinitz wrote:
> Hi,
> 
> On Fri, Jun 21, 2002 at 11:29:17AM +0100, Tim Waugh wrote:
> 
>>Is there any good reason not to use (for example) '/dev/usb/scanner0'
>>instead of '/dev/usbscanner0' in the various SANE .conf files?
> 
>  
> Usage seems to vary between distributions, at least when I started
> writing sane_usb, users used both types.  Even the Linux kernel
> documentation isn't sure about the correct place. devices.txt says
> "/dev/usb/scanner*" while usb/scanner.txt lists "/dev/usbscanner*".
> 


Is there a good reason to have this in the configuration files, 
alongside with /dev/scanner?
Couldn't the code in sane-find-scanner be reused in the backends?
eg:
   sanei_find_scanner(attach_one);

Frank.