summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-05-02 01:46:14 +0000
committermeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-05-02 01:46:14 +0000
commit855cc21b1a500fa4b8f7ecbc4f745dd7e02b4691 (patch)
treecfd8e53dfe83d72a3fc0ff7805f2e6ce883cc22b /include
parent1870e3694d5ce0a892c839b82520ac00f3ea55f8 (diff)
updated win32 support for MINGW32-compiler/cross-compiler
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1990 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include')
-rw-r--r--include/librfid/rfid_protocol_mifare_classic.h4
-rw-r--r--include/librfid/rfid_reader.h16
2 files changed, 19 insertions, 1 deletions
diff --git a/include/librfid/rfid_protocol_mifare_classic.h b/include/librfid/rfid_protocol_mifare_classic.h
index b20a028..e50cd2f 100644
--- a/include/librfid/rfid_protocol_mifare_classic.h
+++ b/include/librfid/rfid_protocol_mifare_classic.h
@@ -33,7 +33,9 @@ extern const struct rfid_protocol rfid_protocol_mfcl;
#define MIFARE_CL_RESP_ACK 0x0a
#define MIFARE_CL_RESP_NAK 0x00
-
#endif /* __LIBRFID__ */
+extern int mfcl_set_key(struct rfid_protocol_handle *ph, unsigned char *key);
+extern int mfcl_auth(struct rfid_protocol_handle *ph, u_int8_t cmd, u_int8_t block);
+
#endif /* _MIFARE_CLASSIC_H */
diff --git a/include/librfid/rfid_reader.h b/include/librfid/rfid_reader.h
index b41672f..af2f4be 100644
--- a/include/librfid/rfid_reader.h
+++ b/include/librfid/rfid_reader.h
@@ -12,6 +12,22 @@ struct rfid_reader {
unsigned int l2_supported;
unsigned int proto_supported;
+ int (*get_api_version)(
+ struct rfid_reader_handle *h,
+ u_int8_t *version);
+
+ int (*get_environment)(
+ struct rfid_reader_handle *rh,
+ unsigned char num_bytes,
+ unsigned char *buf);
+
+ int (*set_environment)(
+ struct rfid_reader_handle *rh,
+ unsigned char num_bytes,
+ const unsigned char *buf);
+
+ int (*reset)(struct rfid_reader_handle *h);
+
int (*transceive)(struct rfid_reader_handle *h,
enum rfid_frametype frametype,
const unsigned char *tx_buf, unsigned int tx_len,
personal git repositories of Harald Welte. Your mileage may vary