Beispiel #1
0
/*
 * Free the provided tag.
 */
void
freefare_free_tag (MifareTag tag)
{
    if (tag) {
	switch (tag->tag_info->type) {
	    case CLASSIC_1K:
	    case CLASSIC_4K:
		mifare_classic_tag_free (tag);
		break;
	    case DESFIRE:
		mifare_desfire_tag_free (tag);
		break;
	    case ULTRALIGHT:
		mifare_ultralight_tag_free (tag);
		break;
	}
    }
}
Beispiel #2
0
/*
 * Free the provided tag.
 */
void
freefare_free_tag (FreefareTag tag)
{
    if (tag) {
        switch (tag->tag_info->type) {
        case FELICA:
            felica_tag_free (tag);
            break;
        case MIFARE_CLASSIC_1K:
        case MIFARE_CLASSIC_4K:
            mifare_classic_tag_free (tag);
            break;
        case MIFARE_DESFIRE:
            mifare_desfire_tag_free (tag);
            break;
        case MIFARE_ULTRALIGHT:
        case MIFARE_ULTRALIGHT_C:
            mifare_ultralight_tag_free (tag);
            break;
        }
    }
}