[sane-devel] sanei_usb.c

Henning Meier-Geinitz henning@meier-geinitz.de
Sun, 3 Jul 2005 14:56:03 +0200


Hi,

On Tue, Jun 28, 2005 at 10:24:36PM +0930, Paul Smedley wrote:
> OS/2 doesn't have libusb, but has a library usbcalls that provides 
> similar functionality, albeit most of the calls use different syntax.
> 
> I have sane-find-scanner working now for most scanners, and have started 
> 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:devno
> 
> Is this defined for all devices or just ones that sanei_usb_init thinks 
> are scanners?

busno:devno is the way libusb defines USB devices. These may be
numbers or paths depending on the operating system.

> 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?

You are right.

> In which case, I could use usbcalls:deviceno or even just deviceno?

Please use usbcalls:something. This way it's easy to detect which
access method is used.

Bye,
  Henning