summaryrefslogtreecommitdiffstats
path: root/include/hardware/fingerprint.h
diff options
context:
space:
mode:
authorSasha Levitskiy <sanek@google.com>2015-04-16 14:45:04 -0700
committerAndres Morales <anmorales@google.com>2015-04-16 21:52:28 +0000
commit468b5673166ade001a1d23ab65787ce1750f9077 (patch)
tree6b65aa92f8eda6f18d5e5d0c24e2aae4719939ef /include/hardware/fingerprint.h
parent6fa82480aeb702ca60bc20d5c8df3c4a62904e3b (diff)
downloadhardware_libhardware-468b5673166ade001a1d23ab65787ce1750f9077.zip
hardware_libhardware-468b5673166ade001a1d23ab65787ce1750f9077.tar.gz
hardware_libhardware-468b5673166ade001a1d23ab65787ce1750f9077.tar.bz2
Fingerprint: Add an API to get authenticator id
Change-Id: If45ebc228425eaa43bf9abde934f8bb4e7d97e6c Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'include/hardware/fingerprint.h')
-rw-r--r--include/hardware/fingerprint.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/hardware/fingerprint.h b/include/hardware/fingerprint.h
index 68687b2..552b5d7 100644
--- a/include/hardware/fingerprint.h
+++ b/include/hardware/fingerprint.h
@@ -157,6 +157,16 @@ typedef struct fingerprint_device {
uint64_t (*pre_enroll)(struct fingerprint_device *dev);
/*
+ * get_authenticator_id:
+ * Returns a token associated with the current fingerprint set. This value will
+ * change whenever a new fingerprint is enrolled, thus creating a new fingerprint
+ * set.
+ *
+ * Function return: current authenticator id.
+ */
+ uint64_t (*get_authenticator_id)(struct fingerprint_device *dev);
+
+ /*
* Cancel pending enroll or authenticate, sending FINGERPRINT_ERROR_CANCELED
* to all running clients. Switches the HAL state machine back to the idle state.
* will indicate switch back to the scan mode.
@@ -214,9 +224,6 @@ typedef struct fingerprint_device {
* Do not set by hand, use the function above instead.
*/
fingerprint_notify_t notify;
-
- /* Reserved for future use. Must be NULL. */
- void* reserved[8 - 4];
} fingerprint_device_t;
typedef struct fingerprint_module {