Commit graph

12 commits

Author SHA1 Message Date
Romain Tartiere
7fd413789a Add error checking to mifare_classic_connect(), mifare_classic_disconnect().
Do not assume nfc_initiator_select_tag() and nfc_initiator_deselect_tag() will not return an error if the provided tag is supposed to be ready for the operation (it might have move out of the field), and let the error propagate through libfreefare to the application calling the functions.
2010-01-08 08:29:19 +00:00
Romuald Conty
7d1495940f add an accessor to UID contained in MifareClassicTag 2010-01-06 23:42:06 +00:00
Romain Tartiere
073b67be48 merge all includes into a single freefare.h header.
libmad already has a mad.h file libfreefare would conflict with.
2009-12-26 18:16:22 +00:00
Romuald Conty
3c4d6ff095 Tag is no more active if authentication failed. 2009-12-26 03:37:20 +00:00
Romuald Conty
a5dd66f77d put MifareSectorNumber type in a new mifare_common.h header.
API changed: mifare_classic_format_sector() now takes a MifareSectorNumber in argument.
2009-12-23 15:26:57 +00:00
Romain Tartiere
4bf33cc707 Fix autotools on FreeBSD.
Endianness fun is not provided by the same header file on GNU/Linux (endian.h) and FreeBSD (sys/endian.h).  Add some magic for the autotools to detect the correct header file.  While here, add AC_C_INLINE: it's reported as missing by autoscan(1).
2009-12-22 20:48:13 +00:00
Romain Tartiere
00ca4579c9 - Rename MifareSector to MifareSectorNumber;
- Fix includes (use '<>' instead of '""');
  - Add -I. to cc arguments.
2009-12-21 02:35:28 +00:00
Romain Tartiere
f9c2b6e9e3 Mark functions parameters as `const' when applicable. 2009-12-19 22:55:50 +00:00
Romain Tartiere
7ed4561f74 New API function: mifare_classic_trailer_block(). 2009-12-19 06:10:44 +00:00
Romain Tartiere
1f40cc97c7 New API function: mifare_classic_format_sector(). 2009-12-19 02:01:04 +00:00
Romain Tartiere
967f9822e9 Add pointers to the implementation sources. 2009-12-18 21:13:09 +00:00
Romain Tartiere
bb486e4318 Import libfreefare into trunk. 2009-12-18 20:32:25 +00:00