mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Basic image driver foundations
The basic model is that image drivers declare a fp_img_driver structure rather than a fp_driver struct. fp_img_driver will contain primitive imaging operations such as 'scan finger and return image'. The imgdev layer will generically implement the primitive fp_driver operations, and the imgdev layer will fix up the enroll/verify/etc pointers at driver registration time. Removed const from all fp_driver declarations, as these are now modified dynamically in the case of imaging drivers.
This commit is contained in:
@@ -43,17 +43,17 @@ enum fp_finger {
|
||||
/* Device discovery */
|
||||
struct fp_dscv_dev **fp_discover_devs(void);
|
||||
void fp_dscv_devs_free(struct fp_dscv_dev **devs);
|
||||
const struct fp_driver *fp_dscv_dev_get_driver(struct fp_dscv_dev *dev);
|
||||
struct fp_driver *fp_dscv_dev_get_driver(struct fp_dscv_dev *dev);
|
||||
|
||||
/* Device handling */
|
||||
struct fp_dev *fp_dev_open(struct fp_dscv_dev *ddev);
|
||||
void fp_dev_close(struct fp_dev *dev);
|
||||
const struct fp_driver *fp_dev_get_driver(struct fp_dev *dev);
|
||||
struct fp_driver *fp_dev_get_driver(struct fp_dev *dev);
|
||||
int fp_dev_get_nr_enroll_stages(struct fp_dev *dev);
|
||||
|
||||
/* Drivers */
|
||||
const char *fp_driver_get_name(const struct fp_driver *drv);
|
||||
const char *fp_driver_get_full_name(const struct fp_driver *drv);
|
||||
const char *fp_driver_get_name(struct fp_driver *drv);
|
||||
const char *fp_driver_get_full_name(struct fp_driver *drv);
|
||||
|
||||
/* Enrollment */
|
||||
enum fp_enroll_result {
|
||||
|
||||
Reference in New Issue
Block a user