disable debugging by default
[librfid] / include / librfid / rfid_reader.h
index 695221d..b41672f 100644 (file)
@@ -9,6 +9,9 @@ struct rfid_reader_handle;
 struct rfid_reader {
        char *name;
        unsigned int id;
+       unsigned int l2_supported;
+       unsigned int proto_supported;
+
        int (*transceive)(struct rfid_reader_handle *h,
                          enum rfid_frametype frametype,
                          const unsigned char *tx_buf, unsigned int tx_len,
@@ -38,16 +41,16 @@ struct rfid_reader {
                int (*init)(struct rfid_reader_handle *rh);
        } iso15693;
        struct rfid_mifare_classic_reader {
-               int (*setkey)(struct rfid_reader_handle *h, unsigned char *key);
+               int (*setkey)(struct rfid_reader_handle *h, const unsigned char *key);
                int (*auth)(struct rfid_reader_handle *h, u_int8_t cmd,
                            u_int32_t serno, u_int8_t block);
        } mifare_classic;
-       struct rfid_reader *next;
 };
 
 enum rfid_reader_id {
        RFID_READER_CM5121,
        RFID_READER_PEGODA,
+       RFID_READER_OPENPCD,
 };
 
 struct rfid_reader_handle {
@@ -59,7 +62,6 @@ struct rfid_reader_handle {
        struct rfid_reader *reader;
 };
 
-
 extern struct rfid_reader_handle *
 rfid_reader_open(void *data, unsigned int id);