diff options
author | cbdev <cb@cbcdn.com> | 2023-06-20 20:58:01 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2023-06-20 20:58:01 +0200 |
commit | 0da2f58c7528b504ee54e380b755ea5f0801b4bb (patch) | |
tree | d94cb34eea2ee38b1d802a614a89d80055772a7f /nfcommander.h | |
parent | 15769aa7329789e4a996321f0b7897949c230e07 (diff) | |
download | nfcommander-0da2f58c7528b504ee54e380b755ea5f0801b4bb.tar.gz nfcommander-0da2f58c7528b504ee54e380b755ea5f0801b4bb.tar.bz2 nfcommander-0da2f58c7528b504ee54e380b755ea5f0801b4bb.zip |
Proper select looping in reader_yhy
Diffstat (limited to 'nfcommander.h')
-rw-r--r-- | nfcommander.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nfcommander.h b/nfcommander.h index 1f2e1e1..049380d 100644 --- a/nfcommander.h +++ b/nfcommander.h @@ -33,4 +33,13 @@ typedef enum { } notification_target_t; int core_manage_fd(int fd, int manage, notification_target_t system); + +/* + * This API is to be called by reader backends to indicate presence of a tag. + * This can be done as soon as the UID of the tag has been read (ie. before + * reading EEPROM contents) to check whether the card has already been read. + * If this API returns 1, a full read is requested and the nfc_tag_info_t should + * be submitted again with the data fully read. + */ +#define TAG_READ_REQUESTED 1 int reader_tag_present(nfc_tag_info_t tag); |