hidl: biometrics: fingerprint: Add support for extCmd

* Xiaomi extends fingerprint_device_t by adding a new method called extCmd used to send vendor specific commands

Change-Id: Ic94f7b3fd28f7db81695e47f54ce6fa89248bde9
This commit is contained in:
C457 2022-03-23 15:55:44 +01:00 committed by Sebastiano Barezzi
parent 39bd52cad5
commit cd3f74f3d0
No known key found for this signature in database
GPG Key ID: 47760583F393BC44

View File

@ -1,5 +1,6 @@
/*
* Copyright (C) 2014 The Android Open Source Project
* 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -249,6 +250,11 @@ typedef struct fingerprint_device {
*/
int (*authenticate)(struct fingerprint_device *dev, uint64_t operation_id, uint32_t gid);
/*
* Xiaomi fingerprint extension command.
*/
int (*extCmd)(struct fingerprint_device* dev, int32_t cmd, int32_t param);
/* Reserved for backward binary compatibility */
void *reserved[4];
} fingerprint_device_t;