diff options
Diffstat (limited to 'nfcommander.h')
-rw-r--r-- | nfcommander.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nfcommander.h b/nfcommander.h index 049380d..79b8790 100644 --- a/nfcommander.h +++ b/nfcommander.h @@ -15,6 +15,11 @@ typedef enum { tag_ultralightc } nfc_tag_t; +#define FLAG_TAG_DATA_VALID 1 +#define FLAG_TAG_UNPROGRAMMED 2 +#define FLAG_TAG_LOCKED 4 +#define TAG_STATUS_FLAGS ((FLAG_TAG_DATA_VALID | FLAG_TAG_UNPROGRAMMED | FLAG_TAG_LOCKED)) + typedef struct { //core identifying properties nfc_tag_t type; @@ -42,4 +47,4 @@ int core_manage_fd(int fd, int manage, notification_target_t system); * be submitted again with the data fully read. */ #define TAG_READ_REQUESTED 1 -int reader_tag_present(nfc_tag_info_t tag); +int reader_tag_present(uint8_t flags, nfc_tag_info_t tag); |