[sane-devel] fb630u success

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 29 Oct 2001 19:16:35 +0100


On Mon, Oct 29, 2001 at 11:33:40AM +0100, Bertrik Sikken wrote:
> Sorry if I sound blunt, but what is the use of the sanei_usb.h
> functions?
> Currently it looks like they are simply wrappers around the
> functions of the scanner.c kernel module.

They are wrappers for USB access in the "everything is a file" way.
This should also work with uscanner (FreeBSD) and maybe (untested)
with generic USB access.

> If it is because of platform specific issues, then what about
> libusb?

It's because of the platform issues (e.g. different file names) and
changes between OS versions (e.g. different ioctls for vendor/product
information in Linux). Also it transforms the error codes to SANE
status codes. No need to replicate this code in every backend.

Concerning libusb: There was a discussion about this topic some month
ago and the result was (IIRC) that it's not possible to support libusb
and scanner.c access with this kind of wrapper.

I'm interested in tests on and additions for other platforms for