add support for mifare ultralight
authorHarald Welte <laforge@gnumonks.org>
Sat, 22 Oct 2005 17:21:36 +0000 (17:21 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sat, 22 Oct 2005 17:21:36 +0000 (17:21 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1550 e0336214-984f-0b4b-a45f-81c69e1f0ede

include/rfid/rfid_protocol.h
include/rfid/rfid_protocol_mifare_ul.h [new file with mode: 0644]
rfid.c

index 5172a08..7d5dcff 100644 (file)
@@ -4,6 +4,7 @@
 #include <rfid/rfid_layer2.h>
 
 #include <rfid/rfid_protocol_tcl.h>
+#include <rfid/rfid_protocol_mifare_ul.h>
 
 struct rfid_protocol_handle;
 
@@ -58,7 +59,7 @@ int
 rfid_protocol_read(struct rfid_protocol_handle *ph,
                   unsigned int page,
                   unsigned char *rx_data,
-                  unsigned int rx_len);
+                  unsigned int *rx_len);
 
 int
 rfid_protocol_write(struct rfid_protocol_handle *ph,
diff --git a/include/rfid/rfid_protocol_mifare_ul.h b/include/rfid/rfid_protocol_mifare_ul.h
new file mode 100644 (file)
index 0000000..34d246a
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _RFID_PROTOCOL_MFUL_H
+#define _RFID_PROTOCOL_MFUL_H
+
+struct rfid_protocol rfid_protocol_mful;
+
+#endif
diff --git a/rfid.c b/rfid.c
index 4d0d2c2..0ca7ef3 100644 (file)
--- a/rfid.c
+++ b/rfid.c
@@ -42,6 +42,7 @@ int rfid_init()
        rfid_layer2_register(&rfid_layer2_iso14443a);
        rfid_layer2_register(&rfid_layer2_iso14443b);
        rfid_protocol_register(&rfid_protocol_tcl);
+       rfid_protocol_register(&rfid_protocol_mful);
 
        return 0;
 }