[Pcsclite-cvs-commit] r1686 - trunk/Drivers/ocfBridge

Ludovic Rousseau rousseau at costa.debian.org
Mon Oct 17 13:31:38 UTC 2005


Author: rousseau
Date: 2005-10-17 13:31:37 +0000 (Mon, 17 Oct 2005)
New Revision: 1686

Modified:
   trunk/Drivers/ocfBridge/OCFPCSC1.cpp
   trunk/Drivers/ocfBridge/OCFPCSC1.h
Log:
add Java_com_ibm_opencard_terminal_pcsc10_OCFPCSC1_reset() function

Thanks to Tomas Gustavsson for the patch


Modified: trunk/Drivers/ocfBridge/OCFPCSC1.cpp
===================================================================
--- trunk/Drivers/ocfBridge/OCFPCSC1.cpp	2005-10-17 13:29:23 UTC (rev 1685)
+++ trunk/Drivers/ocfBridge/OCFPCSC1.cpp	2005-10-17 13:31:37 UTC (rev 1686)
@@ -721,6 +721,16 @@
   return jRecvBuf;
 }
 
+/*
+ * Class:     com_ibm_opencard_terminal_pcsc10_OCFPCSC1
+ * Method:    reset
+ * Signature: ()V
+ */
+JNIEXPORT void JNICALL Java_com_ibm_opencard_terminal_pcsc10_OCFPCSC1_reset
+  (JNIEnv *env, jobject obj) {
+    removeAllContexts();
+    SCardUnload();
+}
 
 
 

Modified: trunk/Drivers/ocfBridge/OCFPCSC1.h
===================================================================
--- trunk/Drivers/ocfBridge/OCFPCSC1.h	2005-10-17 13:29:23 UTC (rev 1685)
+++ trunk/Drivers/ocfBridge/OCFPCSC1.h	2005-10-17 13:31:37 UTC (rev 1686)
@@ -95,6 +95,14 @@
 JNIEXPORT jbyteArray JNICALL Java_com_ibm_opencard_terminal_pcsc10_OCFPCSC1_SCardTransmit
   (JNIEnv *, jobject, jlong, jbyteArray);
 
+/*
+ * Class:     com_ibm_opencard_terminal_pcsc10_OCFPCSC1
+ * Method:    reset
+ * Signature: ()V
+ */
+JNIEXPORT void JNICALL Java_com_ibm_opencard_terminal_pcsc10_OCFPCSC1_reset
+  (JNIEnv *, jobject);
+
 #ifdef __cplusplus
 }
 #endif




More information about the Pcsclite-cvs-commit mailing list