mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: Link fp_dev to fp_img_dev and back
So it's easy to switch between the 2 structs, and remove fp_img_dev->dev direct access, as well as fp_dev->priv "user data" usage.
This commit is contained in:
@@ -68,6 +68,9 @@ struct fp_dev {
|
||||
uint32_t devtype;
|
||||
void *priv;
|
||||
|
||||
/* only valid if drv->type == DRIVER_IMAGING */
|
||||
struct fp_img_dev *img_dev;
|
||||
|
||||
int nr_enroll_stages;
|
||||
|
||||
/* read-only to drivers */
|
||||
@@ -136,8 +139,9 @@ enum fp_imgdev_verify_state {
|
||||
};
|
||||
|
||||
struct fp_img_dev {
|
||||
struct fp_dev *dev;
|
||||
libusb_device_handle *udev;
|
||||
struct fp_dev *parent;
|
||||
|
||||
enum fp_imgdev_action action;
|
||||
int action_state;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user