[Pcsclite-cvs-commit] CVS PCSC/src

CVS User rousseau ludovic.rousseau@free.fr
Thu, 26 May 2005 13:00:04 +0000


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv2900

Modified Files:
	hotplug_libusb.c 
Log Message:
implement HPReCheckSerialReaders() to set ReCheckSerialReaders flag
if ReCheckSerialReaders flag is set we call RFReCheckReaderConf()

This code has nothing to do with libusb or USB but is a serial hotplug
so should be in a hotplug loop


--- /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c	2005/04/12 12:09:05	1.34
+++ /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c	2005/05/26 13:00:04	1.35
@@ -7,7 +7,7 @@
  *  Toni Andjelkovic <toni@soth.at>
  *  Damien Sauveron <damien.sauveron@labri.fr>
  *
- * $Id: hotplug_libusb.c,v 1.34 2005/04/12 12:09:05 rousseau Exp $
+ * $Id: hotplug_libusb.c,v 1.35 2005/05/26 13:00:04 rousseau Exp $
  */
 
 /**
@@ -52,7 +52,8 @@
 
 static PCSCLITE_THREAD_T usbNotifyThread;
 static int driverSize = -1;
-static int AraKiriHotPlug = FALSE;
+static char AraKiriHotPlug = FALSE;
+char ReCheckSerialReaders = FALSE;
 
 /*
  * keep track of drivers in a dynamically allocated array
@@ -334,6 +335,12 @@
 			pthread_exit(&retval);
 		}
 
+		if (ReCheckSerialReaders)
+		{
+			ReCheckSerialReaders = FALSE;
+			RFReCheckReaderConf();
+		}
+
 	}	/* End of while loop */
 }
 
@@ -433,5 +440,11 @@
 	return 0;
 }
 
+void HPReCheckSerialReaders(void)
+{
+	ReCheckSerialReaders = TRUE;
+	return 0;
+}
+
 #endif