From 0e1aded982db89236a65ab5548b5ade2b333e0d5 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 1 Jul 2010 12:32:03 +0000 Subject: [PATCH] Document the mifare_tag_type enum. --- HACKING | 2 ++ libfreefare/freefare.3 | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/HACKING b/HACKING index bf48308..314e58d 100644 --- a/HACKING +++ b/HACKING @@ -37,6 +37,8 @@ infrastructure ready for hacking the new card support: - Edit libfreefare/freefare.h: - Add your tag to the `mifare_tag_type' enum; - Add a _connect() and a _disconnect() function prototype; + - Edit libfreefare/freefare.3: + - Add your tag to the `mifare_tag_type' enum documentation; - Edit libfreefare/freefare_internal.h: - Add a new _tag struct. It's very first member shall be `struct mifare_tag __tag'; diff --git a/libfreefare/freefare.3 b/libfreefare/freefare.3 index ba8cb50..1e19c48 100644 --- a/libfreefare/freefare.3 +++ b/libfreefare/freefare.3 @@ -50,6 +50,13 @@ Mifare card manipulation library (libfreefare, \-lfreefare) .In freefare.h .Ft "MifareTag *" .Fn freefare_get_tags "nfc_device_t *device" +.Bd -literal +enum mifare_tag_type { + ULTRALIGHT, + CLASSIC_1K, + CLASSIC_4K +}; +.Ed .Ft enum mifare_tag_type .Fn freefare_get_tag_type "MifareTag tag" .Ft "const char *"