summaryrefslogtreecommitdiff
path: root/nfcommander.h
diff options
context:
space:
mode:
Diffstat (limited to 'nfcommander.h')
-rw-r--r--nfcommander.h9
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);