Tue, 28 Jun 2005 11:02:36 -0500
Quoting Paul Smedley <firstname.lastname@example.org>:
> Hi All,
> I'm working on adding support for USB scanners for Sane on OS/2.
> OS/2 doesn't have libusb, but has a library usbcalls that provides=20
> similar functionality, albeit most of the calls use different syntax.
> I have sane-find-scanner working now for most scanners, and have starte=
> work on remaining functions in sanei_usb.c
> One query I have though is about devname
> I see in sanei_usb.h that the libusb format for this is libusb:busno:de=
> Is this defined for all devices or just ones that sanei_usb_init thinks=
> are scanners?
It is defined for each usb device. Having this naming scheme allows the=20
OS to use the same functionality that applies to filenames for usb device=
So the permissions on that filename can be used to indicate the permissio=
for its associated usb device.=20
> I assume that the format of devname really isn't important - so long as=
> it's useful to the usb method being used (ie kernel, libusb or usbcalls=
> for OS/2) in determining which usb device is being attached to?
> In which case, I could use usbcalls:deviceno or even just deviceno?
For portability, it would be best to use just one system for all usb devi=
within that operating system. This is a problem for the OS you are using=
> usbcalls doesn't just bus/deviceno - it just has a device number for=20
> each device attached.
> Thanks for listening - I hope to have some patches (and probably some=20
> more questions!!) soonish :)