Functions | |
const char * | fp_driver_get_name (struct fp_driver *drv) |
Retrieves the name of the driver. | |
const char * | fp_driver_get_full_name (struct fp_driver *drv) |
Retrieves a descriptive name of the driver. | |
uint16_t | fp_driver_get_driver_id (struct fp_driver *drv) |
Retrieves the driver ID code for a driver. |
libfprint works hard so that you don't have to care about these internal abstractions, however there are some situations where you may be interested in a little behind-the-scenes driver info.
You can obtain the driver for a device using fp_dev_get_driver(), which you can pass to the functions documented on this page.
The only reason you may be interested in retrieving the driver ID for a driver is for the purpose of checking if some print data is compatible with a device. libfprint uses the driver ID as one way of checking that the print you are trying to verify is compatible with the device in question - it ensures that enrollment data from one driver is never fed to another. Note that libfprint does provide you with helper functions to determine whether a print is compatible with a device, so under most circumstances, you don't have to worry about driver IDs at all.
const char* fp_driver_get_name | ( | struct fp_driver * | drv | ) |
Retrieves the name of the driver.
For example: "upekts"
drv | the driver |
const char* fp_driver_get_full_name | ( | struct fp_driver * | drv | ) |
Retrieves a descriptive name of the driver.
For example: "UPEK TouchStrip"
drv | the driver |
uint16_t fp_driver_get_driver_id | ( | struct fp_driver * | drv | ) |
Retrieves the driver ID code for a driver.
drv | the driver |