I just checked in a new module, named simply 'backend'.
It is based on the 'testtool' module, but now with
emphasis on being a sane backend.
I renamed all hp3300* files into niash*, also renamed
functions from hp3300* to niash*.
The multiple USB access method mechanism is now pulled
out and replaced by the built-in usb functions from
sane (which will also try to use both libusb and the
scanner kernel module).
It compiles and works as a backend. The testtool does
currently not work yet.
For compatibility with the testtool, we can add the
multiple USB access method back in by creating a
sanei_usb stub. This should be mostly a copy/paste/
rename action from the original hp3300c_xfer.c file.
Since this conversion started some time ago, the files
are not completely in sync with the 'testtool' files.
(On the other hand, the latest changes seem to be related
to Kooka compatibility and I'm not sure if we should add
explicit code to make the backend work with Kooka, i.o.w.
work around Kooka bugs.)
All the best,