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

@ -57,7 +57,10 @@ static void list_fingerprints(DBusGProxy *dev, const char *username)
if (!net_reactivated_Fprint_Device_get_properties(dev, &props, &error))
g_error("GetProperties failed: %s", error->message);
g_print("Fingerprints for user %s on %s:\n", username, (char *) g_hash_table_lookup (props, "Name"));
g_print("Fingerprints for user %s on %s (%s):\n",
username,
g_value_get_string (g_hash_table_lookup (props, "Name")),
g_value_get_string (g_hash_table_lookup (props, "ScanType")));
g_hash_table_destroy (props);
for (i = 0; fingers[i] != NULL; i++) {