lib: Add fp_driver_supports_imaging()

So we don't need to open a device before checking whether it supports
imaging.
This commit is contained in:
Bastien Nocera
2018-10-11 15:00:30 +02:00
parent 46ebb39f65
commit f42cd6eefd
3 changed files with 20 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ const char *fp_driver_get_name(struct fp_driver *drv);
const char *fp_driver_get_full_name(struct fp_driver *drv);
uint16_t fp_driver_get_driver_id(struct fp_driver *drv);
enum fp_scan_type fp_driver_get_scan_type(struct fp_driver *drv);
int fp_driver_supports_imaging(struct fp_driver *drv);
/* Device discovery */
struct fp_dscv_dev **fp_discover_devs(void);