summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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