mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Add a done argument to result signals
For verify and enroll, add a done argument so that front-end know easily when they should be closing the device.
This commit is contained in:
committed by
Daniel Drake
parent
0636c77962
commit
26aab5dc28
@ -96,13 +96,11 @@ static void find_finger(DBusGProxy *dev, const char *username)
|
||||
g_strfreev (fingers);
|
||||
}
|
||||
|
||||
static void verify_result(GObject *object, const char *result, void *user_data)
|
||||
static void verify_result(GObject *object, const char *result, gboolean done, void *user_data)
|
||||
{
|
||||
gboolean *verify_completed = user_data;
|
||||
g_print("Verify result: %s\n", result);
|
||||
if (g_str_equal (result, "verify-no-match") ||
|
||||
g_str_equal (result, "verify-match") ||
|
||||
g_str_equal (result, "verify-unknown-error"))
|
||||
if (done != FALSE)
|
||||
*verify_completed = TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user