From 0da2f58c7528b504ee54e380b755ea5f0801b4bb Mon Sep 17 00:00:00 2001 From: cbdev Date: Tue, 20 Jun 2023 20:58:01 +0200 Subject: Proper select looping in reader_yhy --- nfcommander.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nfcommander.h') 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); -- cgit v1.2.3