From 68ef944cd0258f72bd6bd09641030b1d810334d4 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 29 Sep 2011 14:10:07 +0000 Subject: [PATCH] Make freefare_tag_new() public (Fixes issue 64). --- NEWS | 1 + libfreefare/freefare.c | 2 +- libfreefare/freefare.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7f6cafc..b7fbe70 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,7 @@ Changes between 0.3.1 and 0.3.2 [XX xxx XXXX] mifare_desfire_create_backup_data_file_iso(), mifare_desfire_create_linear_record_file_iso(), mifare_desfire_create_cyclic_record_file_iso(). + *) New public API function freefare_tag_new(); *) Microsoft Windows support. Changes between 0.3.0 and 0.3.1 [23 feb 2011] diff --git a/libfreefare/freefare.c b/libfreefare/freefare.c index 6f5c17a..f1f712d 100644 --- a/libfreefare/freefare.c +++ b/libfreefare/freefare.c @@ -40,7 +40,7 @@ struct supported_tag supported_tags[] = { /* * Automagically allocate a MifareTag given a device and target info. */ -static MifareTag +MifareTag freefare_tag_new (nfc_device_t *device, nfc_iso14443a_info_t nai) { bool found = false; diff --git a/libfreefare/freefare.h b/libfreefare/freefare.h index 33548d4..591269c 100644 --- a/libfreefare/freefare.h +++ b/libfreefare/freefare.h @@ -53,6 +53,7 @@ typedef uint8_t MifareUltralightPageNumber; typedef unsigned char MifareUltralightPage[4]; MifareTag *freefare_get_tags (nfc_device_t *device); +MifareTag freefare_tag_new (nfc_device_t *device, nfc_iso14443a_info_t nai); enum mifare_tag_type freefare_get_tag_type (MifareTag tag); const char *freefare_get_tag_friendly_name (MifareTag tag); char *freefare_get_tag_uid (MifareTag tag);