Am Freitag 23 Januar 2009 06:51:13 schrieb Alon Bar-Lev:
> On 1/22/09, Jeffrey Hutzelman <jh...@cmu.edu> wrote:
> >  How do you propose for USB device drivers to talk to their devices, if
> > not using libusb?  Remember, we'd like to be portable here; the whole
> > world's not Linux.
>
> openct does not use libusb for communicating with usb even before I
> know it exists... :)

the reason for this was:
the kernel does usb monitoring and told us by running /sbin/hotplug
"there is a new usb device" and included the path in /proc/bus/usb.

with libusb there was no way to map that path to the libusb structures.
we would need to parse the path for host and device number, than
have libusb scan the bus, enumerate all devices and look for the
device we want. not nice.

Regards, Andreas
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to