Hi,

On Sonntag, 22. November 2009, Ludovic Rousseau wrote:
[...]
> Why not "open" the device in pcscd and pass to the driver a handle to
> the opened device? The handle could be a file descriptor or something
> more complex like a "libusb_device *".
[...]

I think the current naming scheme for libusb is ok: The driver can extract the 
bus id and device address rather easily.

Pre-opening the device might not help the driver developer: As it stands now I 
can choose between libusb-0.x and 1.x. Libusb-1.x gives defined access to the 
bus id (libusb_get_bus_number) and device address (libusb_get_device_address), 
so there is no problem with this information being internal to libusb (as was 
the case with 0.x).

Also, this would bind the IFD API to libusb - right down to the version (e.g. 
1.x vs. 0.x). And what about non-USB devices (e.g. pcmcia, serial)? Or devices 
using /dev/ttyUSBx?

So IMHO it would be best to keep it at the current naming scheme for libusb-
accessed device and leave the choice of how to access the device with the 
driver.

Just my 2c.


Regards
Martin

-- 
"Things are only impossible until they're not"

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to