you will have to do the same for scsi, so this seems like a fair bit
of code duplication.
how about hiding the existing sanei_* functions, and calling them from
wrappers? something like:
/*PRIVATE*/
_sanei_usb_attach_matching_devices (
const char *name,
SANE_Status (*attach) (const char
Hello,
currently, the sanei_usb_find_devices() and
sanei_usb_attach_matching_devices() functions use an attach callback which
has only a 'name' parameter. So when parsing configuration options quite a
few backends store options in global vars to use them at attach time. Now we