Santiago Gimeno
5b10f8519c
src: fix for OSs not supporting PnP Notification
...
- Instead of waiting for the notification, it will poll every second for a new
card reader.
- Thanks to Ludovic Rousseau for the help. See:
https://github.com/santigimeno/node-pcsclite/issues/14
2014-09-23 18:35:58 +02:00
Santiago Gimeno
f85250beb0
src: add error_msg to create pretty pcsc errors
2014-09-23 18:31:58 +02:00
Santiago Gimeno
ec0b79562c
src: establish context on PCSCLite constructor
...
- Remove SCardEstablishContext from get_card_readers.
- Initialize m_status_thread to NULL so calling PCSCLite destructor does not
crash in case the thread has not been launched. For example when
SCardEstablish context fails
- Thanks to Ludovic Rousseau for pointing that out @
https://github.com/santigimeno/node-pcsclite/pull/15#issuecomment-56222251 .
2014-09-23 18:31:15 +02:00
Santiago Gimeno
44a89dbbf6
src: fix OS X compilation issues
2014-09-11 07:32:20 -07:00
Santiago Gimeno
26faed6dec
src: refactor to use nan
...
- Now it supports latest 0.8.x, 0.10.x and 0.11.x
2014-08-05 10:10:00 +02:00
Santiago Gimeno
cd01cd4788
src: remove fprintf's
2014-07-28 13:36:02 +02:00
Santiago Gimeno
040f91c7b9
Change SCARD_READERSTATE initialization
...
- To remove some compiler warnings
2013-10-15 17:31:01 +02:00
Santiago Gimeno
1844bf1f3a
Initialize SCARD_READERSTATE
...
- Not doing so was leading to random memory corruption errors.
2013-08-08 13:45:05 +02:00
Santiago Gimeno
b40f9a2f88
Initial Implementation
2013-06-20 16:37:28 +02:00