[Pcsclite-git-commit] [PCSC] 11/11: Doxygen: improve documentation

Ludovic Rousseau rousseau at moszumanska.debian.org
Fri Mar 11 17:54:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit 6cd24b9c83513c207cff39afbf9b653cbf8d004a
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Fri Mar 11 16:25:57 2016 +0100

    Doxygen: improve documentation
    
    Thanks to Maksim Ivanov for the bug report
    http://lists.alioth.debian.org/pipermail/pcsclite-muscle/Week-of-Mon-20160307/000545.html
---
 src/winscard_clnt.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index 1a8780d..23c9c3e 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -2162,7 +2162,7 @@ error:
  * SCARDHANDLE hCard;
  * DWORD dwActiveProtocol, dwSendLength, dwRecvLength;
  * BYTE pbRecvBuffer[10];
- * BYTE pbSendBuffer[] = { 0x06, 0x00, 0x0A, 0x01, 0x01, 0x10 0x00 };
+ * BYTE pbSendBuffer[] = { 0x06, 0x00, 0x0A, 0x01, 0x01, 0x10, 0x00 };
  * ...
  * rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
  * rv = SCardConnect(hContext, "Reader X", SCARD_SHARE_SHARED,
@@ -2756,7 +2756,7 @@ end:
  * LONG rv;
  * ...
  * rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
- * dwReaders = SCARD_AUTOALLOCATE
+ * dwReaders = SCARD_AUTOALLOCATE;
  * rv = SCardListReaders(hContext, NULL, (LPSTR)&mszReaders, &dwReaders);
  * rv = SCardFreeMemory(hContext, mszReaders);
  * @endcode
@@ -3028,12 +3028,13 @@ end:
  * LONG rv;
  * ...
  * rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
- * rgReaderStates.szReader = strdup("Reader X");
+ * rgReaderStates.szReader = "Reader X";
  * rgReaderStates.dwCurrentState = SCARD_STATE_EMPTY;
+ * cReaders = 1;
  * ...
- * / * Spawn off thread for following function * /
+ * rv = SCardGetStatusChange(hContext, INFINITE, &rgReaderStates, cReaders);
  * ...
- * rv = SCardGetStatusChange(hContext, 0, rgReaderStates, cReaders);
+ * / * Spawn off thread for following function * /
  * rv = SCardCancel(hContext);
  * @endcode
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list