summaryrefslogtreecommitdiff
path: root/include/librfid/rfid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/librfid/rfid.h')
-rw-r--r--include/librfid/rfid.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/librfid/rfid.h b/include/librfid/rfid.h
new file mode 100644
index 0000000..6717ef8
--- /dev/null
+++ b/include/librfid/rfid.h
@@ -0,0 +1,26 @@
+#ifndef _RFID_H
+#define _RFID_H
+
+#include <stdio.h>
+
+#ifdef __LIBRFID__
+
+enum rfid_frametype {
+ RFID_14443A_FRAME_REGULAR,
+ RFID_14443B_FRAME_REGULAR,
+ RFID_MIFARE_FRAME,
+};
+
+#define DEBUGP(x, args ...) fprintf(stderr, "%s(%d):%s: " x, __FILE__, __LINE__, __FUNCTION__, ## args)
+#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
+extern const char *rfid_hexdump(const void *data, unsigned int len);
+
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
+#endif /* __LIBRFID__ */
+
+int rfid_init();
+
+#endif /* _RFID_H */
personal git repositories of Harald Welte. Your mileage may vary