[Pcsclite-git-commit] [pcsc-tools] 18/32: pcsc_scan: animate "Waiting for first reader"
Ludovic Rousseau
rousseau at moszumanska.debian.org
Thu May 4 15:44:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit 40f44890254a12e8468df0d9f30018269f2cadba
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat Apr 8 15:04:41 2017 +0200
pcsc_scan: animate "Waiting for first reader"
Animation if PC/SC support reader Plug & Play.
---
pcsc_scan.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/pcsc_scan.c b/pcsc_scan.c
index cd71d12..8250ada 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -250,7 +250,14 @@ get_readers:
rgReaderStates[0].szReader = "\\\\?PnP?\\Notification";
rgReaderStates[0].dwCurrentState = SCARD_STATE_UNAWARE;
- rv = SCardGetStatusChange(hContext, INFINITE, rgReaderStates, 1);
+ spin_start();
+ do
+ {
+ rv = SCardGetStatusChange(hContext, TIMEOUT, rgReaderStates, 1);
+ spin_update();
+ }
+ while (SCARD_E_TIMEOUT == rv);
+ spin_suspend();
test_rv("SCardGetStatusChange", rv, hContext);
}
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git
More information about the Pcsclite-cvs-commit
mailing list