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:
parent
d946230aec
commit
42b21ff42f
42 changed files with 384 additions and 381 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
extern MifareTag tag;
|
||||
extern FreefareTag tag;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
extern MifareTag tag;
|
||||
extern FreefareTag tag;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
extern MifareTag tag;
|
||||
extern FreefareTag tag;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
extern MifareTag tag;
|
||||
extern FreefareTag tag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue