Export scan type through HAL
Also export the scan type through HAL.
This commit is contained in:
parent
d482228325
commit
749bb3e30e
1 changed files with 2 additions and 5 deletions
|
@ -53,16 +53,13 @@ static void print_driver (struct fp_driver *driver)
|
|||
printf (" <append key=\"info.capabilities\" type=\"strlist\">biometric.fingerprint_reader</append>\n");
|
||||
printf (" <merge key=\"biometric.fingerprint_reader.libfprint.driver\" type=\"string\">%s</merge>\n", driver->name);
|
||||
printf (" <merge key=\"biometric.fingerprint_reader.libfprint.support\" type=\"bool\">true</merge>\n");
|
||||
printf (" <append key=\"biometric.fingerprint_reader.scan_type\" type=\"string\">%s</append>\n",
|
||||
fp_driver_get_scan_type (driver) == FP_SCAN_TYPE_PRESS ? "press" : "swipe");
|
||||
printf (" </match>\n");
|
||||
printf (" </match>\n");
|
||||
}
|
||||
}
|
||||
|
||||
static void print_imaging_driver (struct fp_img_driver *driver)
|
||||
{
|
||||
print_driver (&(driver->driver));
|
||||
}
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
struct fp_driver **list;
|
||||
|
|
Loading…
Reference in a new issue