From 855cc21b1a500fa4b8f7ecbc4f745dd7e02b4691 Mon Sep 17 00:00:00 2001 From: meri Date: Wed, 2 May 2007 01:46:14 +0000 Subject: updated win32 support for MINGW32-compiler/cross-compiler git-svn-id: https://svn.gnumonks.org/trunk/librfid@1990 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_protocol_mifare_classic.h | 4 +++- include/librfid/rfid_reader.h | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'include') 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, -- cgit v1.2.3