[Pcsclite-cvs-commit] r2423 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Fri Feb 23 17:37:09 CET 2007
Author: rousseau
Date: 2007-02-23 17:37:09 +0100 (Fri, 23 Feb 2007)
New Revision: 2423
Modified:
trunk/Drivers/ccid/src/ccid_usb.c
trunk/Drivers/ccid/src/ccid_usb.h
Log:
add ControlUSB() declaration and implementation
Modified: trunk/Drivers/ccid/src/ccid_usb.c
===================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c 2007-02-23 16:16:57 UTC (rev 2422)
+++ trunk/Drivers/ccid/src/ccid_usb.c 2007-02-23 16:37:09 UTC (rev 2423)
@@ -785,3 +785,11 @@
return int_array;
}
+int ControlUSB(int reader_index, int requesttype, int request, int value,
+ unsigned char *bytes, unsigned int size)
+{
+ return usb_control_msg(usbDevice[reader_index].handle, requesttype,
+ request, value, usbDevice[reader_index].interface, bytes, size,
+ usbDevice[reader_index].ccid.readTimeout * 1000);
+}
+
Modified: trunk/Drivers/ccid/src/ccid_usb.h
===================================================================
--- trunk/Drivers/ccid/src/ccid_usb.h 2007-02-23 16:16:57 UTC (rev 2422)
+++ trunk/Drivers/ccid/src/ccid_usb.h 2007-02-23 16:37:09 UTC (rev 2423)
@@ -37,3 +37,6 @@
/*@null@*/ struct usb_interface *get_ccid_usb_interface(struct usb_device *dev);
#endif
+int ControlUSB(int reader_index, int requesttype, int request, int value,
+ unsigned char *bytes, unsigned int size);
+
More information about the Pcsclite-cvs-commit
mailing list