Commit Graph
10 Commits
Author SHA1 Message Date
Santiago Gimeno 99391039b7 Version 0.4.3 2015-09-26 14:50:56 +02:00
Santiago Gimeno 0a3eaafb2b src: fix reader disconnection logic
- A reader disconnection can't be detected by SCardGetStatusChange in the reader
  (cardreader.cpp) but by detecting that the reader doesn't appear in the list of
  readers retrieved in pcsclite.cpp.
- The list of readers is now stored in an object where the keys are the names of
  the readers. When a reader disconnection is detected, the reader is closed
  triggering the 'end' event. Then the reader is removed from the readers list.
2015-09-26 14:35:59 +02:00
Santiago Gimeno 32d0cb0289 src: fix cardreader thread synchronization
- Make sure while handling AsyncResult in HandleReaderStatusChange
  (JS thread), the AsyncResult is not overwritten in HandlerFunction
  (SCardGetStatusChange thread).
2015-09-26 14:32:02 +02:00
Santiago Gimeno 1ca9670420 src: fix sign-compare warnings in OSX
- Cast SCARD_E_TIMEOUT and SCARD_E_NO_READERS_AVAILABLE to LONG

PR-URL: https://github.com/santigimeno/node-pcsclite/pull/44
2015-09-18 07:02:43 +02:00
Santiago Gimeno 83be0bdf61 src: fix snprintf format for OSX
- As LONG is defined as a int32_t in OSX.

PR-URL: https://github.com/santigimeno/node-pcsclite/pull/44
2015-09-18 07:02:38 +02:00
Santiago Gimeno 674df70a74 Merge pull request #19 from LudovicRousseau/fixes
example: Made the script directly executable
2014-09-25 09:41:30 +02:00
Santiago Gimeno 44a89dbbf6 src: fix OS X compilation issues 2014-09-11 07:32:20 -07:00
Santiago Gimeno a688a80265 Merge pull request #5 from bitdeli-chef/master
Add a Bitdeli Badge to README
2013-12-03 01:32:08 -08:00
Santiago Gimeno c98f7bc2de Merge pull request #1 from LudovicRousseau/fixes
Remove an extra typographical character
2013-06-29 13:48:09 -07:00
Santiago Gimeno 0484b764bf Initial commit 2013-06-20 03:29:56 -07:00