<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>This is out of my control: my (part of the) application gets called with a libusb_device pointer and asks me to perform a scan.</div>
<div> </div>
<div>- Sven</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><span style="font-family: Verdana, sans-serif, Arial, 'Trebuchet MS'; font-size: 13px; line-height: 1.6em;">On Fri, Mar 21, 2014 at 8:51 AM, Sven Harmstorf <svh79@gmx.net> wrote:</span></div>
<div name="quoted-content">> I could create the USB device name ('libusb:000:0000' or 'usb 0x0000<br/>
> 0x0000') and use sanei_usb_open() to get the device number which is used by<br/>
> most sanei_usb functions. But this would also not get me the device name I<br/>
> need for the public SANE API functions.<br/>
> Background:<br/>
><br/>
> My application receives a scan request (addressed to a libusb_device) and I<br/>
> have to process and forward that request to the corresponding SANE_Device.<br/>
> As there are several identical devices attached via USB and the caller of my<br/>
> application does not know anything about SANE, I need the USB bus and<br/>
> address to identify the correct SANE device. My application only supports<br/>
> scanners attached via USB, as it will be run on an embedded system which<br/>
> does not provide any other ports than USB.<br/>
<br/>
How does your app get the indication of which libusb device to scan from?<br/>
<br/>
allan<br/>
--<br/>
"The truth is an offense, but not a sin"</div>
</div>
</div>
</div></div></body></html>