[Pcsclite-cvs-commit] r6428 - in /trunk/contrib/libPCSCv2part10: PCSCv2part10.c PCSCv2part10.h
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Aug 10 13:16:47 UTC 2012
Author: rousseau
Date: Fri Aug 10 13:16:46 2012
New Revision: 6428
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6428
Log:
Rename tag_searched in property
The constants are PCSCv2_PART10_PROPERTY_* so property is a better
parameter name.
Modified:
trunk/contrib/libPCSCv2part10/PCSCv2part10.c
trunk/contrib/libPCSCv2part10/PCSCv2part10.h
Modified: trunk/contrib/libPCSCv2part10/PCSCv2part10.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/contrib/libPCSCv2part10/PCSCv2part10.c?rev=6428&op=diff
==============================================================================
--- trunk/contrib/libPCSCv2part10/PCSCv2part10.c (original)
+++ trunk/contrib/libPCSCv2part10/PCSCv2part10.c Fri Aug 10 13:16:46 2012
@@ -34,7 +34,7 @@
#include "PCSCv2part10.h"
int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
- unsigned char *buffer, int length, int tag_searched, int * value_int)
+ unsigned char *buffer, int length, int property, int * value_int)
{
unsigned char *p;
int found = 0, len;
@@ -44,7 +44,7 @@
p = buffer;
while (p-buffer < length)
{
- if (*p++ == tag_searched)
+ if (*p++ == property)
{
found = 1;
break;
@@ -84,7 +84,7 @@
} /* PCSCv2Part10_find_TLV_property_by_tag_from_buffer */
int PCSCv2Part10_find_TLV_property_by_tag_from_hcard(SCARDHANDLE hCard,
- int tag_searched, int * value)
+ int property, int * value)
{
unsigned char buffer[MAX_BUFFER_SIZE];
LONG rv;
@@ -120,6 +120,6 @@
buffer, sizeof buffer, &length);
return PCSCv2Part10_find_TLV_property_by_tag_from_buffer(buffer,
- length, tag_searched, value);
+ length, property, value);
}
Modified: trunk/contrib/libPCSCv2part10/PCSCv2part10.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/contrib/libPCSCv2part10/PCSCv2part10.h?rev=6428&op=diff
==============================================================================
--- trunk/contrib/libPCSCv2part10/PCSCv2part10.h (original)
+++ trunk/contrib/libPCSCv2part10/PCSCv2part10.h Fri Aug 10 13:16:46 2012
@@ -114,7 +114,7 @@
*
* @param buffer buffer received from FEATURE_GET_TLV_PROPERTIES
* @param length buffer length
- * @param tag_searched tag searched
+ * @param property tag searched
* @param[out] value value found
* @return Error code
*
@@ -124,17 +124,17 @@
*
*/
int PCSCv2Part10_find_TLV_property_by_tag_from_buffer(
- unsigned char *buffer, int length, int tag_searched, int * value);
+ unsigned char *buffer, int length, int property, int * value);
/**
* @brief Find a integer value by tag from a PC/SC card handle
* @ingroup API
*
* @param hCard card handle as returned by SCardConnect()
- * @param tag_searched tag searched
+ * @param property tag searched
* @param[out] value value found
* @return Error code (see PCSCv2Part10_find_TLV_property_by_tag_from_buffer())
*/
int PCSCv2Part10_find_TLV_property_by_tag_from_hcard(SCARDHANDLE hCard,
- int tag_searched, int * value);
+ int property, int * value);
More information about the Pcsclite-cvs-commit
mailing list