]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - mt_rfid.h
Convert RFID printing to a function
[coffee/mt-apps.git] / mt_rfid.h
index 10ea402276230e12c43869356c8f3ffc7ee0a3a0..53fa84b7a725bc2fdf6366f46e2ec2e70d91f958 100644 (file)
--- a/mt_rfid.h
+++ b/mt_rfid.h
@@ -2,6 +2,7 @@
 #define MT_RFID_H
 
 #include <ev.h>
+#include <stdint.h>
 
 typedef struct ev_io_ufr {
     ev_io w;           // fd watcher
@@ -39,4 +40,11 @@ void mt_rfid_deinit(mt_rfid_t *self);
 
 #endif /* HAVE_RFID */
 
+void rfid_json_print(int fd,
+                    uint8_t card_type,
+                    uint8_t sak,           //select acknowledge
+                    char *uid,
+                    uint8_t size);
+
+
 #endif