diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2005-11-08 13:04:32 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2005-11-08 13:04:32 +0000 |
commit | 1fcc35aad699f3d40ca786b99c7255cf8aa55892 (patch) | |
tree | 88fb669ab0ab13822d4fcef8bf854d30e97dd9b6 /include/librfid/rfid.h | |
parent | b40ece7ac6d4c72cf8a648fd1b7eee30130eac77 (diff) |
move include directory for pkginclude compliance
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1664 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include/librfid/rfid.h')
-rw-r--r-- | include/librfid/rfid.h | 26 |
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 */ |