Abhinav Baid
aa18595ec7
Add clear-storage example
2025-02-20 16:35:58 +01:00
Dmitrii Shcherbakov
999bca076c
Allow FpPrint data to be extended on enrollment.
...
* Allow FPI_PRINT_NBIS to be extended rather than overridden if a user
supplies an existing FpPrint template with data;
* Prints will only be extended if a device has the required feature.
For image-based devices this feature is added by default since they
typically do not have storage (this can be overridden at the child
class level).
Extending an existing FpPrint requires passing a template print with
existing data during the enrollment process. This is done because the
caller is responsible for maintaining the fingerprint database and doing
the necessary deserialization operations if needed. The existing
example program is updated to show how to do that.
2021-12-16 12:53:41 +01:00
Marco Trevisan (Treviño)
fb5854213a
examples: Add Identify example
...
It was the only main action left in the examples, we use the gallery
from the device if available, otherwise the local one.
2020-11-23 17:00:01 +00:00
Vasily Khoruzhick
fd2875aa3e
examples: add img-capture example
...
This one can be useful in scripts, e.g. for building fingerprint
dataset.
2020-06-13 09:20:28 -07:00
Marco Trevisan (Treviño)
5faf8498d9
compat: Use new GDate autoptr and define if needed
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño)
30c783cbeb
examples: add FP_COMPONENT definitions
2020-01-16 14:37:07 +01:00
Benjamin Berg
3c6ba0b678
storage: Do not free image data owned by FpPrint
...
The data returned by fp_print_get_image is owned by the FpPrint and
should not be free'ed.
2020-01-08 18:14:06 +01:00
Benjamin Berg
4db1b84c7a
examples: Do not free data returned by g_variant_get_fixed_array
...
This data is owned by the variant, so do not free it.
2020-01-08 18:14:06 +01:00
Benjamin Berg
36108f9f82
examples: Fix possible use-after-free in storage code
...
The variant may need the buffer, so we should only free the buffer
together with the variant.
2020-01-08 18:14:06 +01:00
Marco Trevisan (Treviño)
1d48b70f38
storage: Include storage header so that we have declarations
2019-12-04 18:52:18 +01:00
Marco Trevisan (Treviño)
e7c7f368c9
drivers, examples: Don't use -Wno-pointer-sign and fix relative errors
2019-12-04 16:06:24 +01:00
Marco Trevisan (Treviño)
d1fb1e26f3
Uncrustify everything except for nbis
2019-11-20 20:38:06 +01:00
Marco Trevisan (Treviño)
b46d336d2b
examples: Add back examples using the async APIs
...
Add the examples back by using the new async API, support verification and
enroll for devices with own storage.
2019-11-20 13:53:44 +01:00
Benjamin Berg
a4b6813ebf
examples: Add simple storage implementation using GVariant
...
This is useful so that the enroll and verify examples will not use the
deprecated API anymore.
2019-06-13 13:12:15 +00:00