mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Return images through enroll/verify path
Added new API functions to obtain images, even when scans are bad, perhaps a useful way to show the user just how good/bad the scan actually was. Drivers and examples updated accordingly.
This commit is contained in:
@@ -557,7 +557,7 @@ static const unsigned char scan_comp[] = {
|
||||
static const unsigned char poll_data[] = { 0x30, 0x01 };
|
||||
|
||||
static int enroll(struct fp_dev *dev, gboolean initial,
|
||||
int stage, struct fp_print_data **_data)
|
||||
int stage, struct fp_print_data **_data, struct fp_img **img)
|
||||
{
|
||||
unsigned char *data;
|
||||
size_t data_len;
|
||||
@@ -692,7 +692,8 @@ static const unsigned char verify_hdr[] = {
|
||||
0x00
|
||||
};
|
||||
|
||||
static int verify(struct fp_dev *dev, struct fp_print_data *print)
|
||||
static int verify(struct fp_dev *dev, struct fp_print_data *print,
|
||||
struct fp_img **img)
|
||||
{
|
||||
size_t data_len = sizeof(verify_hdr) + print->length;
|
||||
unsigned char *data;
|
||||
|
||||
Reference in New Issue
Block a user