device: Add early match reporting to sync API

This makes the sync/async APIs more similar again. It also simplifies
testing as otherwise we would need the async methods for some tests.
This commit is contained in:
Benjamin Berg
2020-01-10 17:10:44 +01:00
parent 4d5c34e11a
commit 829fb9f873
3 changed files with 20 additions and 8 deletions

View File

@@ -261,12 +261,16 @@ FpPrint * fp_device_enroll_sync (FpDevice *device,
gboolean fp_device_verify_sync (FpDevice *device,
FpPrint *enrolled_print,
GCancellable *cancellable,
FpMatchCb match_cb,
gpointer match_data,
gboolean *match,
FpPrint **print,
GError **error);
gboolean fp_device_identify_sync (FpDevice *device,
GPtrArray *prints,
GCancellable *cancellable,
FpMatchCb match_cb,
gpointer match_data,
FpPrint **match,
FpPrint **print,
GError **error);