mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Enrollment: improved error reporting
Convert enrollment function to return a signed integer, which is negative on error or corresponds into fp_enroll_result otherwise. Now we can treat a 'FAIL' condition differently from an actual error: fail means that enrollment didn't complete because the data was nonsense or whatever (e.g. scanned a different finger for each stage?). Updated upekts accordingly.
This commit is contained in:
committed by
Daniel Drake
parent
ab5b1ca8e9
commit
39271b4fe5
@@ -96,8 +96,8 @@ struct fp_driver {
|
||||
/* Device operations */
|
||||
int (*init)(struct fp_dev *dev);
|
||||
void (*exit)(struct fp_dev *dev);
|
||||
enum fp_enroll_status (*enroll)(struct fp_dev *dev, gboolean initial,
|
||||
int stage, struct fp_print_data **print_data);
|
||||
int (*enroll)(struct fp_dev *dev, gboolean initial, int stage,
|
||||
struct fp_print_data **print_data);
|
||||
};
|
||||
|
||||
extern const struct fp_driver upekts_driver;
|
||||
|
||||
Reference in New Issue
Block a user