Add ScanType and NumberEnrollStages properties

Export the type of scan the device performs, and, when the device
is claimed, the number of enrollment stages.
This commit is contained in:
Bastien Nocera
2008-11-20 17:38:12 +00:00
committed by Daniel Drake
parent f7186c7ff0
commit 874d8164b4
5 changed files with 26 additions and 10 deletions

View File

@ -302,7 +302,7 @@ static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t
if (dbus_g_proxy_call (dev, "GetProperties", &error, G_TYPE_INVALID,
dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), &props, G_TYPE_INVALID)) {
data->driver = g_strdup (g_hash_table_lookup (props, "Name"));
data->driver = g_value_dup_string (g_hash_table_lookup (props, "Name"));
g_hash_table_destroy (props);
}
if (!data->driver)