enable debug output and disable poll for smartcard
[librfid] / include / librfid / rfid_layer2.h
index 1ef0713..7fbf81c 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _RFID_LAYER2_H
 #define _RFID_LAYER2_H
 
-#include <sys/types.h>
 #include <librfid/rfid.h>
 
 struct rfid_layer2_handle;
@@ -12,6 +11,7 @@ enum rfid_layer2_id {
        RFID_LAYER2_ISO14443A,
        RFID_LAYER2_ISO14443B,
        RFID_LAYER2_ISO15693,
+       RFID_LAYER2_ICODE1,
 };
 
 /* 0...0xffff = global options, 0x10000...0x1ffff = private options */
@@ -32,9 +32,9 @@ int rfid_layer2_transceive(struct rfid_layer2_handle *l2h,
                           u_int64_t timeout, unsigned int flags);
 int rfid_layer2_close(struct rfid_layer2_handle *l2h);
 int rfid_layer2_fini(struct rfid_layer2_handle *l2h);
-int rfid_layer2_getopt(struct rfid_layer2_handle *ph, int optname,
+int rfid_layer2_getopt(struct rfid_layer2_handle *l2h, int optname,
                        void *optval, unsigned int *optlen);
-int rfid_layer2_setopt(struct rfid_layer2_handle *ph, int optname,
+int rfid_layer2_setopt(struct rfid_layer2_handle *l2h, int optname,
                        const void *optval, unsigned int optlen);
 char *rfid_layer2_name(struct rfid_layer2_handle *l2h);
 #ifdef __LIBRFID__
@@ -42,6 +42,7 @@ char *rfid_layer2_name(struct rfid_layer2_handle *l2h);
 #include <librfid/rfid_layer2_iso14443a.h>
 #include <librfid/rfid_layer2_iso14443b.h>
 #include <librfid/rfid_layer2_iso15693.h>
+#include <librfid/rfid_layer2_icode1.h>
 
 struct rfid_layer2 {
        unsigned int id;
@@ -64,7 +65,6 @@ struct rfid_layer2 {
                              int optname, const void *optval,
                              unsigned int optlen);
        } fn;
-       struct rfid_layer2 *next;
 };
 
 struct rfid_layer2_handle {
@@ -78,7 +78,7 @@ struct rfid_layer2_handle {
                struct iso14443b_handle iso14443b;
                struct iso15693_handle iso15693;
        } priv;
-       struct rfid_layer2 *l2;
+       const struct rfid_layer2 *l2;
 };
 
 #endif /* __LIBRFID__ */