summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSasha Levitskiy <sanek@google.com>2015-04-28 15:49:05 -0700
committerSasha Levitskiy <sanek@google.com>2015-05-12 16:35:15 -0700
commite0a2988b82afd9141eba075a231dfa47c55c01c4 (patch)
tree4e54c1e789a165e7841f956163165e85f1c07378 /include
parent9e82a9dd5ea4c44fa9bd926444624e9c34a83212 (diff)
downloadhardware_libhardware-e0a2988b82afd9141eba075a231dfa47c55c01c4.zip
hardware_libhardware-e0a2988b82afd9141eba075a231dfa47c55c01c4.tar.gz
hardware_libhardware-e0a2988b82afd9141eba075a231dfa47c55c01c4.tar.bz2
Fingerprint: Add enumerate function to FP HAL
Change-Id: I4a1da563a96a1e097ea56e0dced8c02820aa8485 Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/hardware/fingerprint.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/hardware/fingerprint.h b/include/hardware/fingerprint.h
index 0598d9f..a1b81ae 100644
--- a/include/hardware/fingerprint.h
+++ b/include/hardware/fingerprint.h
@@ -177,6 +177,28 @@ typedef struct fingerprint_device {
int (*cancel)(struct fingerprint_device *dev);
/*
+ * Enumerate all the fingerprint templates found in the directory set by
+ * set_active_group()
+ * This is a synchronous call. The function takes:
+ * - A pointer to an array of fingerprint_finger_id_t.
+ * - The size of the array provided, in fingerprint_finger_id_t elements.
+ * Max_size is a bi-directional parameter and returns the actual number
+ * of elements copied to the caller supplied array.
+ * In the absence of errors the function returns the total number of templates
+ * in the user directory.
+ * If the caller has no good guess on the size of the array he should call this
+ * function witn *max_size == 0 and use the return value for the array allocation.
+ * The caller of this function has a complete list of the templates when *max_size
+ * is the same as the function return.
+ *
+ * Function return: Total number of fingerprint templates in the current
+ storage directory.
+ * -1 on error.
+ */
+ int (*enumerate)(struct fingerprint_device *dev, fingerprint_finger_id_t *results,
+ uint32_t *max_size);
+
+ /*
* Fingerprint remove request:
* deletes a fingerprint template.
* If the fingerprint id is 0 and the group is 0 then the entire template