Am Freitag 23 Januar 2009 01:49:05 schrieb Peter Stuge:
> Andreas Jellinghaus wrote:
> > if anyone wants to walk into the opposite direction, write a daemon
> > that monitors usb and then acts on any change, that is fine with me
> > - I think pcscd does exactly that? not sure.
>
> Implementation should be simple at least for Linux.

yes and no. it would be simple to scan the usb bus every 0.5 seconds and
compare the result to the last scan to see if anything changed. but if you
want to save power on laptops and idle as much as you can, I guess the
code you need will be much more complex.

also it might be difficult to write such code cross-plattform. at least mac OS X
has a very different usb interface, and I'm not sure if libusb can abstract 
away all the pain of two different designs.

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