mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Initial storage implementation
[dsd: changed from /etc/fprint to /var/lib/fprint] Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:
committed by
Daniel Drake
parent
2a1aa4e0c0
commit
1f54a0c363
@ -17,4 +17,3 @@ manager-dbus-glue.h: ../src/manager.xml
|
||||
|
||||
device-dbus-glue.h: ../src/device.xml
|
||||
dbus-binding-tool --prefix=fprint_device --mode=glib-client $< --output=$@
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <dbus/dbus-glib-bindings.h>
|
||||
#include "manager-dbus-glue.h"
|
||||
@ -155,7 +156,7 @@ static guint32 find_finger(DBusGProxy *dev)
|
||||
int fingernum;
|
||||
guint32 print_id;
|
||||
|
||||
if (!net_reactivated_Fprint_Device_list_enrolled_fingers(dev, &fingers, &error))
|
||||
if (!net_reactivated_Fprint_Device_list_enrolled_fingers_from_storage(dev, "anarsoul", &fingers, &error))
|
||||
g_error("ListEnrolledFingers failed: %s", error->message);
|
||||
|
||||
if (fingers->len == 0) {
|
||||
@ -173,7 +174,7 @@ static guint32 find_finger(DBusGProxy *dev)
|
||||
g_array_free(fingers, TRUE);
|
||||
|
||||
g_print("Verifying: %s\n", fingerstr(fingernum));
|
||||
if (!net_reactivated_Fprint_Device_load_print_data(dev, fingernum, &print_id, &error))
|
||||
if (!net_reactivated_Fprint_Device_load_print_data_from_storage(dev, fingernum, "anarsoul", &print_id, &error))
|
||||
g_error("LoadPrintData failed: %s", error->message);
|
||||
|
||||
return print_id;
|
||||
|
||||
Reference in New Issue
Block a user