[Pcsclite-git-commit] [PCSC] 06/06: Doxygen: fix SCardGetAndLockContext() documentation

Ludovic Rousseau rousseau at moszumanska.debian.org
Fri Jan 27 20:40:56 UTC 2017


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

rousseau pushed a commit to branch master
in repository PCSC.

commit 25f9089e5c9c082b3c88f3687bdb27db048cc9a9
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Fri Jan 27 11:01:41 2017 +0100

    Doxygen: fix SCardGetAndLockContext() documentation
---
 src/winscard_clnt.c | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index beaefeb..f79ea46 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -319,6 +319,11 @@ struct _psContextMap
 	list_t channelMapList;
 	char cancellable;				/**< We are in a cancellable call */
 };
+/**
+ * @brief Represents the an Application Context on the Client side.
+ *
+ * typedef of _psContextMap
+ */
 typedef struct _psContextMap SCONTEXTMAP;
 
 static list_t contextMapList;
@@ -3262,16 +3267,20 @@ error:
 }
 
 /**
- * @brief Get the index from the Application Context vector \c _psContextMap
- * for the passed context.
+ * @brief Get the \ref SCONTEXTMAP * from the Application Context
+ * vector \c _psContextMap for the passed context.
  *
  * This function is a thread-safe wrapper to the function
  * SCardGetContextTH().
  *
- * @param[in] hContext Application Context whose index will be find.
+ * If the context is valid then \c &currentContextMap->mMutex lock is
+ * acquired. The mutex lock needs to be released when the structure is
+ * no more used.
  *
- * @return Index corresponding to the Application Context or -1 if it is
- * not found.
+ * @param[in] hContext Application Context whose SCONTEXTMAP will be find.
+ *
+ * @return context map corresponding to the Application Context or NULL
+ * if it is not found.
  */
 static SCONTEXTMAP * SCardGetAndLockContext(SCARDCONTEXT hContext)
 {

-- 
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