mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 12:23: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
@ -65,13 +65,12 @@ static DBusGProxy *open_device(const char *username)
|
||||
return dev;
|
||||
}
|
||||
|
||||
static void enroll_result(GObject *object, const char *result, void *user_data)
|
||||
static void enroll_result(GObject *object, const char *result, gboolean done, void *user_data)
|
||||
{
|
||||
gboolean *enroll_completed = user_data;
|
||||
g_print("Enroll result: %s\n", result);
|
||||
if (g_str_equal(result, "enroll-completed") ||
|
||||
g_str_equal(result, "enroll-failed") ||
|
||||
g_str_equal(result, "enroll-unknown-error"))
|
||||
if (done != FALSE)
|
||||
*enroll_completed = TRUE;
|
||||
*enroll_completed = TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user