mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
Add enrollment functionality
This commit is contained in:
@ -192,8 +192,8 @@ static void do_verify(DBusGProxy *dev, guint32 print_id)
|
||||
GError *error;
|
||||
gboolean verify_completed = FALSE;
|
||||
|
||||
dbus_g_proxy_add_signal(dev, "VerifyResult", G_TYPE_INT, NULL);
|
||||
dbus_g_proxy_connect_signal(dev, "VerifyResult", G_CALLBACK(verify_result),
|
||||
dbus_g_proxy_add_signal(dev, "VerifyStatus", G_TYPE_INT, NULL);
|
||||
dbus_g_proxy_connect_signal(dev, "VerifyStatus", G_CALLBACK(verify_result),
|
||||
&verify_completed, NULL);
|
||||
|
||||
if (!net_reactivated_Fprint_Device_verify_start(dev, print_id, &error))
|
||||
@ -202,7 +202,7 @@ static void do_verify(DBusGProxy *dev, guint32 print_id)
|
||||
while (!verify_completed)
|
||||
g_main_context_iteration(NULL, TRUE);
|
||||
|
||||
dbus_g_proxy_disconnect_signal(dev, "VerifyResult", G_CALLBACK(verify_result), &verify_completed);
|
||||
dbus_g_proxy_disconnect_signal(dev, "VerifyStatus", G_CALLBACK(verify_result), &verify_completed);
|
||||
|
||||
if (!net_reactivated_Fprint_Device_verify_stop(dev, &error))
|
||||
g_error("VerifyStop failed: %s", error->message);
|
||||
|
||||
Reference in New Issue
Block a user