[Pcsclite-cvs-commit] Drivers/ccid/src commands.c,1.21,1.22 commands.h,1.9,1.10
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv29102
Modified Files:
commands.c commands.h
Log Message:
CmdXfrBlockTPDU_T0() and CmdXfrBlockTPDU_T1() are internal functions so
declare them static
Index: commands.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/commands.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- commands.c 9 Jul 2004 07:10:17 -0000 1.21
+++ commands.c 15 Jul 2004 08:33:37 -0000 1.22
@@ -47,6 +47,16 @@
*/
#define DEFAULT_VOLTAGE 1 /* start with 5 volts */
+/* internal functions */
+static RESPONSECODE CmdXfrBlockTPDU_T0(unsigned int lun, unsigned int tx_length,
+ unsigned char tx_buffer[], unsigned int *rx_length,
+ unsigned char rx_buffer[]);
+
+static RESPONSECODE CmdXfrBlockTPDU_T1(unsigned int lun, unsigned int tx_length,
+ unsigned char tx_buffer[], unsigned int *rx_length,
+ unsigned char rx_buffer[]);
+
+
/*****************************************************************************
*
* CmdPowerOn
@@ -487,7 +497,7 @@
* CmdXfrBlockTPDU_T0
*
****************************************************************************/
-RESPONSECODE CmdXfrBlockTPDU_T0(unsigned int lun, unsigned int tx_length,
+static RESPONSECODE CmdXfrBlockTPDU_T0(unsigned int lun, unsigned int tx_length,
unsigned char tx_buffer[], unsigned int *rx_length,
unsigned char rx_buffer[])
{
@@ -508,7 +518,7 @@
* CmdXfrBlockTPDU_T1
*
****************************************************************************/
-RESPONSECODE CmdXfrBlockTPDU_T1(unsigned int lun, unsigned int tx_length,
+static RESPONSECODE CmdXfrBlockTPDU_T1(unsigned int lun, unsigned int tx_length,
unsigned char tx_buffer[], unsigned int *rx_length,
unsigned char rx_buffer[])
{
Index: commands.h
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/commands.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- commands.h 9 Jul 2004 07:10:17 -0000 1.9
+++ commands.h 15 Jul 2004 08:33:37 -0000 1.10
@@ -48,14 +48,6 @@
RESPONSECODE CCID_Receive(unsigned int lun, unsigned int *rx_length,
unsigned char rx_buffer[]);
-RESPONSECODE CmdXfrBlockTPDU_T0(unsigned int lun, unsigned int tx_length,
- unsigned char tx_buffer[], unsigned int *rx_length,
- unsigned char rx_buffer[]);
-
-RESPONSECODE CmdXfrBlockTPDU_T1(unsigned int lun, unsigned int tx_length,
- unsigned char tx_buffer[], unsigned int *rx_length,
- unsigned char rx_buffer[]);
-
RESPONSECODE SetParameters(unsigned int lun, char protocol, unsigned int length,
unsigned char buffer[]);