From 749bb3e30ebfc08be26bd849753a0e169d46b504 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Mon, 24 Nov 2008 15:31:21 +0000
Subject: [PATCH] Export scan type through HAL

Also export the scan type through HAL.
---
 libfprint/fprint-list-hal-info.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/libfprint/fprint-list-hal-info.c b/libfprint/fprint-list-hal-info.c
index 6182b13..13d24d6 100644
--- a/libfprint/fprint-list-hal-info.c
+++ b/libfprint/fprint-list-hal-info.c
@@ -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;