diff options
author | Sasha Levitskiy <sanek@google.com> | 2015-04-16 14:45:04 -0700 |
---|---|---|
committer | Andres Morales <anmorales@google.com> | 2015-04-16 21:52:28 +0000 |
commit | 468b5673166ade001a1d23ab65787ce1750f9077 (patch) | |
tree | 6b65aa92f8eda6f18d5e5d0c24e2aae4719939ef /modules | |
parent | 6fa82480aeb702ca60bc20d5c8df3c4a62904e3b (diff) | |
download | hardware_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 'modules')
-rw-r--r-- | modules/fingerprint/fingerprint.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/fingerprint/fingerprint.c b/modules/fingerprint/fingerprint.c index ac7e35b..33ede62 100644 --- a/modules/fingerprint/fingerprint.c +++ b/modules/fingerprint/fingerprint.c @@ -32,6 +32,11 @@ static int fingerprint_close(hw_device_t *dev) } } + +static uint64_t fingerprint_pre_enroll(struct fingerprint_device __unused *dev) { + return FINGERPRINT_ERROR; +} + static int fingerprint_enroll(struct fingerprint_device __unused *dev, const hw_auth_token_t __unused *hat, uint32_t __unused gid, @@ -39,6 +44,10 @@ static int fingerprint_enroll(struct fingerprint_device __unused *dev, return FINGERPRINT_ERROR; } +static uint64_t fingerprint_get_auth_id(struct fingerprint_device __unused *dev) { + return FINGERPRINT_ERROR; +} + static int fingerprint_cancel(struct fingerprint_device __unused *dev) { return FINGERPRINT_ERROR; } @@ -81,7 +90,9 @@ static int fingerprint_open(const hw_module_t* module, const char __unused *id, dev->common.module = (struct hw_module_t*) module; dev->common.close = fingerprint_close; + dev->pre_enroll = fingerprint_pre_enroll; dev->enroll = fingerprint_enroll; + dev->get_authenticator_id = fingerprint_get_auth_id; dev->cancel = fingerprint_cancel; dev->remove = fingerprint_remove; dev->set_active_group = fingerprint_set_active_group; |