Laurent Bigonville
df2a530b20
debian/patches/udev-rules-creation-add-Debian-specifics.patch: credit Sebastien Bacher
2020-01-11 02:02:04 +01:00
Laurent Bigonville
053fc7f489
debian/control: Build-Depends on python3-cairo, python3-gi, umockdev for the testsuite
2020-01-11 01:51:49 +01:00
Laurent Bigonville
153a519a41
debian/control: Bump Standards-Version to 4.4.1 (no further changes)
2020-01-10 20:34:23 +01:00
Laurent Bigonville
3c023b7b7a
Add gobject-introspection and libgirepository1.0-dev to the build-dependencies and install the GObject introspection bindings
2020-01-10 20:34:23 +01:00
Laurent Bigonville
6e21b46f55
Bump the soname to libfprint2
2020-01-10 20:34:22 +01:00
Laurent Bigonville
e8fe42536e
Bump debhelper compatibility version to 12
2020-01-10 20:34:07 +01:00
Laurent Bigonville
1751baec91
debian/patches/udev-rules-creation-add-Debian-specifics.patch: refreshed
2020-01-10 20:33:45 +01:00
Laurent Bigonville
50e8754206
Drop d/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch and d/patches/use-non-versionned-libusbh-path.patch, not needed anymore
2020-01-10 20:33:08 +01:00
Laurent Bigonville
c8677bedbf
New upstream release
...
* New upstream release
- Replace libusb-1.0 build-dependency by gusb and add libgusb-doc to the
Build-Depends-Indep
2020-01-10 03:08:50 +01:00
Laurent Bigonville
e926421740
Update upstream source from tag 'upstream/1.90.0'
...
Update to upstream version '1.90.0'
with Debian dir 70b1bcbdcc
2020-01-10 02:21:53 +01:00
Laurent Bigonville
3f38ffd3bf
New upstream version 1.90.0
2020-01-10 02:21:50 +01:00
Benjamin Berg
3f3d4559b4
upekts: Remove unused argument from deinitsm_new
2020-01-09 10:45:54 +01:00
Benjamin Berg
fcdf1a1ff1
device: Fix potential memory leak of progress_cb user data
...
The progress report user data free func was not assigned and therefore
never called. Add the missing assign, potentially fixing memory leaks
(mostly relevant for bindings).
2020-01-09 10:45:54 +01:00
Marco Trevisan (Treviño)
edd5d08bed
Merge remote-tracking branch 'origin/master' into tod
2020-01-08 19:04:08 +01:00
Benjamin Berg
ba07c74006
tests: Always add dummy skipping tests
...
Just hiding tests that cannot be run does not seem like the best idea.
So add dummy tests that are skipped, to denote that we could test more
than we actually do (even if it is just for drivers that are not
enabled).
2020-01-08 18:40:41 +01:00
Benjamin Berg
6716359fe8
tests: Add more notes about umockdev recording creation
...
umockdev recordings are usually not usable as is. Add some notes to the
README to summarise what kind of changes may be required.
2020-01-08 18:14:06 +01:00
Benjamin Berg
c27a4faeca
elan: Add umockdev based test
...
Unfortunately, the timeout handling cannot be simulated properly. This
also adds a workaround in the driver to not consider it a protocol error
if this happens.
2020-01-08 18:14:06 +01:00
Benjamin Berg
8992e559f8
image-device: Fix enroll continuation after retry error
...
Continuing an enroll was broken in case of a retry error. Explicitly add
code to wait for the finger to go OFF after a retry error, and ensure
that the enroll will continue once that has happened.
2020-01-08 18:14:06 +01:00
Benjamin Berg
6c6df626c8
image-device: Fix reading default values from the class
...
We cannot copy information from the class in the _init routine, instead,
this needs to be done in _constructed. Move the relevant code into a new
_constructed function to fix importing the bz3_threshold override from
drivers.
Fixes : #206
2020-01-08 18:14:06 +01:00
Benjamin Berg
87dee93633
examples: Do not re-prompt the finger when repeating verification
...
Let's assume the user will want to re-scan the same finger rather than
being prompted again to change it.
2020-01-08 18:14:06 +01:00
Benjamin Berg
516c1593bb
examples: Continue verification when return is pressed
...
The message says [Y/n], but will not do Y by default. Fix this.
2020-01-08 18:14:06 +01:00
Benjamin Berg
dcc7e6de90
examples: Save image even on match failure
...
Move the image saving out, so that it is always done when an image is
available. This allows viewing the image that corresponds to a match
failure.
2020-01-08 18:14:06 +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
Benjamin Berg
19f239ce61
tests: Add some frame assembly unit tests
2020-01-08 18:14:06 +01:00
Benjamin Berg
f91e5310bb
tests: Set MESON_SOURCE_ROOT to source root not build root
2020-01-02 13:46:46 +01:00
Benjamin Berg
0d604fa34e
fpi-assembling: Fix offsets to be relative to the previous frame
...
The offset stored for a frame was not always relative to the previous
frame. This was the case for reverse movement, but for forwrad movement
the offset was the one to the next frame.
Make the offset handling consistent and alwasy store the offset to the
previous frame. Also update the frame assembling code to add the offset
before blitting the frame (i.e. making it relative to the previous frame
there too).
Note that fpi_assemble_lines already made the assumption that this was
the case as it forced the offset for the first frame to be zero. As
such, the code was inconsistent.
This could affect the AES drivers slightly as they use hardware reported
values which might not adhere to these assumptions.
2020-01-02 13:46:46 +01:00
Benjamin Berg
d9bcf9b9cc
fpi-assembling: Accept error of zero
...
Rather than discarding a zero error, check that the constraints are
sane. This way a perfect match is possible.
2020-01-02 13:46:46 +01:00
Marco Trevisan (Treviño)
d078c78171
fpi: Add paddings to the private structs
2019-12-19 15:03:17 +01:00
Marco Trevisan (Treviño)
4e972724a8
fp-image: Remove config.h inclusion in fpi-header
2019-12-19 15:03:17 +01:00
Marco Trevisan (Treviño)
d998fb436e
tests: Add TOD unit tests re-using the fake-driver
2019-12-19 15:03:16 +01:00
Marco Trevisan (Treviño)
29be067297
TOD: Add TOuch Drivers loader
2019-12-19 15:03:16 +01:00
Marco Trevisan (Treviño)
b8e558452a
fp-print: Add FP_FINGER_IS_VALID
...
This is coming directly from fprintd, but being something generic is better
to have it insinde libfprint itself.
2019-12-19 14:20:00 +01:00
Marco Trevisan (Treviño)
c9e1a7f283
examples: Iterate through fingers via first/last refs
2019-12-18 12:23:14 +00:00
Marco Trevisan (Treviño)
c5aedc9970
fp-print: Add aliases for First and Last finger in our order
...
We might want to iterate through the supported fingers values, to do that we
were hardcoding FP_FINGER_LEFT_THUMB and FP_FINGER_RIGHT_LITTLE as first and
last fingers.
Not that we'd ever get more fingers (unless some weird radiation would do
the job), but it's logically nicer to read than random hardcoded values.
2019-12-18 12:23:14 +00:00
Benjamin Berg
5b17eda011
Prefix internal properties/signals with fpi- and annotate them
...
We prefixed them with fp- which is not as obvious as fpi-. Also,
explicitly mark them as private and to be skipped in the GObject
Introspection annotatinos.
Warning: FPrint: (Signal)fp-image-device-state-changed: argument object: Unresolved type: 'FpiImageDeviceState'
2019-12-18 12:25:06 +01:00
Marco Trevisan (Treviño)
022b4a75b1
meson: Bump dependency on 0.49.0
...
We're using some new features, and we may use more in future so better to
bump the version to the minimum required than look back given we're still
unstable.
Fixes #204
2019-12-17 20:44:37 +01:00
Marco Trevisan (Treviño)
bfc75de778
libfprint: Make sure we install fp-enums.h in the right folder
...
Since we were not explictly setting the install_dir, it was endind up in
$PREFIX/include by default, while we use our project name as subfolder.
2019-12-17 15:42:56 +01:00
Marco Trevisan (Treviño)
f3f768e738
meson: Fix syntax for fpi_enums generation call
2019-12-17 15:42:32 +01:00
Marco Trevisan (Treviño)
dbb26c5ade
meson: Define enum dependency and ensure we generate them before using
...
Avoid setting the headers as sources everywhere, but instead use a dependency
to manage the headers creation in time
2019-12-17 14:38:20 +01:00
Marco Trevisan (Treviño)
0566f82219
tests: Add a reference to the enrolled print before returning it
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
c8e1269f61
cleanup: Use FPI prefix for all the internal enum types
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
2158c5e2d1
cleanup: Use #pragma once everywhere
...
Remove legacy header guards, and use compiler newer features.
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
10945f8546
cleanup: Remove fp_internal.h and update drivers_api.h
...
Remove the uneeded internal API, as we can now include each header directly
if needed, while move the assembling stuff to the drivers API.
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
806ad10673
meson: Add fp-image-device to public headers
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
4562f9dae3
meson: Use soversion everywhere
...
Don't repeat the 2 version number hard-coding it, so we can easily track
updates
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
c57defda92
meson: Use more meson's project_name()
...
Not that libfprint is long to write, but in case we'll ever change the
basename, we do it once.
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
c806993cb9
meson: Don't install fpi-enums
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
95cb62fd3b
meson: No need to redefine default pkgconfig install dir
...
This value would be the default anyways
2019-12-17 14:38:19 +01:00