Rename MifareTag to FreefareTag.

Because we are libfreefare and not libmifare, the generic tag type
should not be so specific.
This commit is contained in:
Romain Tartière 2015-05-11 18:48:10 +02:00
parent d946230aec
commit 42b21ff42f
42 changed files with 384 additions and 381 deletions

View file

@ -33,7 +33,7 @@ uint8_t key_data_3k3des[24] = { 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01,
const uint8_t key_data_aes_version = 0x42;
void
mifare_desfire_auto_authenticate (MifareTag tag, uint8_t key_no)
mifare_desfire_auto_authenticate (FreefareTag tag, uint8_t key_no)
{
/* Determine which key is currently the master one */
uint8_t key_version;

View file

@ -27,6 +27,6 @@ extern uint8_t key_data_aes[16];
extern uint8_t key_data_3k3des[24];
extern const uint8_t key_data_aes_version;
void mifare_desfire_auto_authenticate (MifareTag tag, uint8_t key_no);
void mifare_desfire_auto_authenticate (FreefareTag tag, uint8_t key_no);
#endif

View file

@ -25,8 +25,8 @@
static nfc_context *context;
static nfc_device *device = NULL;
static MifareTag *tags = NULL;
MifareTag tag = NULL;
static FreefareTag *tags = NULL;
FreefareTag tag = NULL;
void
cut_setup (void)

View file

@ -17,4 +17,4 @@
* $Id$
*/
extern MifareTag tag;
extern FreefareTag tag;

View file

@ -25,8 +25,8 @@
static nfc_context *context;
static nfc_device *device = NULL;
static MifareTag *tags = NULL;
MifareTag tag = NULL;
static FreefareTag *tags = NULL;
FreefareTag tag = NULL;
void
cut_setup (void)

View file

@ -17,4 +17,4 @@
* $Id$
*/
extern MifareTag tag;
extern FreefareTag tag;

View file

@ -25,8 +25,8 @@
static nfc_context *context;
static nfc_device *device = NULL;
static MifareTag *tags = NULL;
MifareTag tag = NULL;
static FreefareTag *tags = NULL;
FreefareTag tag = NULL;
void
cut_setup (void)

View file

@ -17,4 +17,4 @@
* $Id$
*/
extern MifareTag tag;
extern FreefareTag tag;

View file

@ -25,8 +25,8 @@
static nfc_context *context;
static nfc_device *device = NULL;
static MifareTag *tags = NULL;
MifareTag tag = NULL;
static FreefareTag *tags = NULL;
FreefareTag tag = NULL;
void
cut_setup (void)

View file

@ -17,4 +17,4 @@
* $Id$
*/
extern MifareTag tag;
extern FreefareTag tag;