Preparatory patches here. I don't have access to hardware, but adding udev based device discovery should be pretty straight forward. Note that udev support would need to be optional, as *BSDs use libfprint, and have no udev.
Created attachment 139168 [details] [review] lib: Add new bus types for drivers Add a way for drivers to declare they support a bus type other than USB. We have declarations for I2C and virtual drivers, though no discovery is done just yet.
Created attachment 139169 [details] [review] lib: Simplify device discovery Use GPtrArray instead of open-coding a NULL terminated array.
Created attachment 139170 [details] [review] lib: Rename USB-specific discovery functions
Created attachment 139174 [details] [review] lib: Add new bus types for drivers Add a way for drivers to declare they support a bus type other than USB. We have declarations for SPI and virtual drivers, though no discovery is done just yet.
Created attachment 139492 [details] [review] lib: Add new bus types for drivers Add a way for drivers to declare they support a bus type other than USB. We have declarations for SPI and virtual drivers, though there's no device discovery implemented yet.
Created attachment 139493 [details] [review] lib: Simplify device discovery Use GPtrArray instead of open-coding a NULL terminated array.
Created attachment 139494 [details] [review] lib: Rename USB-specific discovery functions
Created attachment 139495 [details] [review] lib: Rename all instances of "udev" to "usb_dev" Because otherwise it's going to get really confusing when we add udev-based device discovery.
Comment on attachment 139495 [details] [review] lib: Rename all instances of "udev" to "usb_dev" The API to access the "udev" is called: fpi_dev_get_usb_dev() and fpi_imgdev_get_usb_dev() depending on the type of driver.
Comment on attachment 139493 [details] [review] lib: Simplify device discovery Attachment 139493 [details] pushed as db34837 - lib: Simplify device discovery
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/libfprint/libfprint/issues/44.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.