Driver operations

Internally, libfprint is abstracted into various drivers to communicate with the different types of supported fingerprint readers. More...

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.

Detailed Description

Internally, libfprint is abstracted into various drivers to communicate with the different types of supported fingerprint readers.

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.

Driver IDs

Each driver is assigned a unique ID by the project maintainer. These assignments are documented on the wiki and will never change.

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.


Function Documentation

const char* fp_driver_get_name ( struct fp_driver *  drv  ) 

Retrieves the name of the driver.

For example: "upekts"

Parameters:
drv the driver
Returns:
the driver name. Must not be modified or freed.

const char* fp_driver_get_full_name ( struct fp_driver *  drv  ) 

Retrieves a descriptive name of the driver.

For example: "UPEK TouchStrip"

Parameters:
drv the driver
Returns:
the descriptive name. Must not be modified or freed.

uint16_t fp_driver_get_driver_id ( struct fp_driver *  drv  ) 

Retrieves the driver ID code for a driver.

Parameters:
drv the driver
Returns:
the driver ID


Generated on Fri Dec 19 15:01:45 2008 for libfprint by  doxygen 1.4.7