No subject
Sat Dec 3 12:15:27 GMT 2022
wite and read data to /dev/usb/scanner (or whatever). No headers or
libraries are involved. So there is no easy way to detect if USB is
available. You could try to open the varoius USB scanner device files
as sane-find-scanner does but I don't think we should do this during
compile time.
> config.h:HAVE_USB_H seems to be the only available way to do this but
> it is defined only for linux when the comment in config.h is correct.
No, that's a documentation bug. usb.h is part of libusb so if
HAVE_USB_H is defined, that means this library is available. There is
a test in configure.in that enables the sm3600 backend if the library
is found. That's the onl backend that uses this library. All the other
backends use sanei_usb or direct access to USB device files.
> How is USB identified for openBSD and other systems?
It isn't really identified. Just open the device file and send data to
it.
Bye,
Henning
More information about the sane-devel
mailing list