Marco Trevisan (Treviño)
f164d4f4cb
Update changelog
2020-02-28 18:19:25 +01:00
Marco Trevisan (Treviño)
a8e81cdabb
debian/control: Point Vcs tag to the ubuntu branch
2020-02-28 18:18:32 +01:00
Marco Trevisan (Treviño)
57790cf413
debian/README.tod.md: Added informations about the TOD fork
2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño)
453aed42d6
debian/control: Set ubuntu as maintainer
2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño)
a93bdd27d4
debian: Add libfprint-2-tod library and headers
...
Add packaging for libfprint-TOD
2020-02-28 17:58:07 +01:00
Marco Trevisan (Treviño)
562401943b
Update upstream source from tag 'upstream/1.90.1+tod1'
...
Update to upstream version '1.90.1+tod1'
with Debian dir c02802d539
2020-02-28 17:56:54 +01:00
Marco Trevisan (Treviño)
0442d58a11
New upstream version 1.90.1+tod1
2020-02-28 17:56:53 +01:00
Marco Trevisan (Treviño)
b1cf057468
Bump libfprint-tod version to v1.90.1+tod1
2020-02-28 17:49:44 +01:00
Marco Trevisan (Treviño)
b2a78ddadc
README.tod.md: Add a basic readme file
2020-02-28 17:49:44 +01:00
Marco Trevisan (Treviño)
d9e208a0d7
debian/watch: Monitor libfprint-tod versions only
2020-02-28 17:11:21 +01:00
Marco Trevisan (Treviño)
0646cc7b66
debian/gbp.conf: Use 'upstream-tod' branch as our upstream branch
2020-02-28 17:11:21 +01:00
Marco Trevisan (Treviño)
3db8cec669
debian/gbp.conf: Track ubuntu branch
2020-02-28 15:59:30 +01:00
Marco Trevisan (Treviño)
19225aaa3e
meson: Add fpi-compat.h to the private headers
2020-02-27 06:04:20 +01:00
Marco Trevisan (Treviño)
7b7fc2423e
tod: Simplify the lib versioning as per upstream libname based on soname
...
No need to keep track of both revisions, as now that's part of the name
2020-02-27 05:58:33 +01:00
Marco Trevisan (Treviño)
337fe867e9
tod-shared-loader: Only allow drivers starting with "lib" prefix
2020-02-27 05:26:32 +01:00
Marco Trevisan (Treviño)
49fd3a5035
Merge tag 'v1.90.1' into tod
...
Tag 1.90.1
2020-02-27 05:24:32 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
0bb8ad1313
tests: Make meson be aware of the single python unit tests
...
Scan for the unit tests in virtual-image suite and handle them individually
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
6eb06697e9
tests/virtual-image: Use introspection names for errors
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
355cae1bbd
fp-device: Return error if trying to list a storage-less device
...
Devices with no storage don't allow listing prints, and if we try to do
that, we'd end up in trying to call a NULL function pointer, causing a crash
So always check if the device has storage before calling the list vfunc, and
if we fail, return an error.
Include an unit-test to verify this situation
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
15a90eb451
meson: Use gnu99 as default C standard
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
82ba69b1df
meson: Depends on gusb 0.2.0, but only enable tests on 0.3.0
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
ccd42bdece
gitignore: Remove autotools ignores, add _build
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
5faf8498d9
compat: Use new GDate autoptr and define if needed
2020-02-10 11:41:40 +01:00
Marco Trevisan (Treviño) and Benjamin Berg
cfbd5d27b7
comapt: Add FpDeviceClass compatibility autoptr and use it
2020-02-10 11:41:37 +01:00
Marco Trevisan (Treviño)
bb08d2e3c2
ci: Use extends to define extra libfprint variables
...
This allows to merge the values when included instead of replacing the whole
variables stanza.
2020-02-05 20:00:07 +01:00
Marco Trevisan (Treviño)
ca5143ffa5
ci: Exclude flatpak job from the schedules
2020-02-05 19:37:42 +01:00
Marco Trevisan (Treviño)
7eb10178b8
ci: Use a template to define libfprint dependencies
...
This allows to share the configuration with fprintd
2020-02-05 18:04:00 +01:00
Marco Trevisan (Treviño)
2c9e252ca4
meson: Use versioned name for autosuspend udev rules
...
Given distros may have the previous value around, let's rename this too
2020-01-23 17:25:38 +01:00
Marco Trevisan (Treviño)
23fab3a20a
Change SONAME and all the library paths to libfprint-2
...
To avoid conflicts with previous libfprint version and make sure that the
target version is the correct one (plus to allow parallel install in some
distros), let's use a versioned naming for the library keeping the abi
version in sync.
Fixes #223
2020-01-23 17:09:58 +01:00
Marco Trevisan (Treviño)
24e9363a46
doc/meson: Use ignore_headers instead of scan_args
2020-01-23 17:00:08 +01:00
Marco Trevisan (Treviño)
a12d316aa4
meson: Use project name for log domain
2020-01-23 17:00:04 +01:00
Marco Trevisan (Treviño)
3b47113122
synaptics: Immediately complete verification if finger removed
...
When quickly scanning a finger with the synaptic driver, it may wait forever
for finger removal even if this has already happened.
In fact we don't take care of the finger status when reporting the
verification.
To avoid this, add a function that delays the completion of the verification
until the finger removal if the finger is on sensor, otherwise it just
performs it.
Fixes #228
2020-01-20 18:24:16 +00:00
Marco Trevisan (Treviño)
7a7bec5a80
synaptics: Report a verify complete error on unexpected result
...
Also remove the unneeded verify report with match failure
2020-01-20 18:24:16 +00:00
Marco Trevisan (Treviño)
8be861b876
synaptics: Remove unneeded complete error/data parameters
...
Remove the never-used cmd_complete_data value and the repetition of
cmd_complete_error.
In fact now as per the fpi_device_verify_report() usage, we already pass
the match information to the device, such as the error and it will be
they will be used on completion if needed.
This allows to simplify cmd_ssm_done() as well.
2020-01-20 18:24:16 +00:00
Marco Trevisan (Treviño)
8893840ffa
synaptics: Always report verify state early on non-match
...
In some cases we want to complete the verification after that the finger has
been removed, but we still need to promptly report the match state otherwise
fpi-device will complain about, and will eventually cause a match error
instead that reporting a non-match:
synaptics: Finger is now on the sensor
synaptics: Received message with 0 sequence number 0x91, ignoring!
synaptics: interrupt transfer done
synaptics: delaying match failure until after finger removal!
synaptics: interrupt transfer done
device: Driver reported successful verify complete but did not report the
result earlier. Reporting error instead
libfprint: Failed to verify print: An unspecified error occured!
Fixes #227
2020-01-20 18:24:16 +00:00
Marco Trevisan (Treviño)
4d6a7ec09d
synaptics: Really check if a print is device database
...
Fix a typo causing the not-in-database print error to be fired, actually
checking the response result.
2020-01-20 18:24:16 +00:00
Marco Trevisan (Treviño)
05df5e2822
test-fpi-device: Verify driver enroll errors
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
58a9214610
test-fpi-device: Add tests for verify/identify warnings
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
cdcc476325
examples/verify: Prompt match/no-match report in callback
...
Promptly show the match/no-match result in the match callback instead of
waiting the verification process to be finished.
Also exit in case of an hard error, while permit to try again in case of a
retry error.
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
a87e9c546f
test-fpi-device: Verify device action error operations
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
ad514c3775
test-fpi-device: Fix file description
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
3c5b7f8ea6
test-fpi-device: Add more probe tests with errors
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
b09df0e40a
test-fpi-device: Add tests for error message creation
2020-01-17 19:44:50 +01:00
Marco Trevisan (Treviño)
027ac8d843
fpi-device: Only mark a device as closed if the operation succeeded
...
We may fail during the close phase, in such case the device should not be
marked as closed.
2020-01-17 19:03:33 +01:00
Marco Trevisan (Treviño)
b3a4c2cf9a
fpi-device: Improve logging and testing on report/complete
2020-01-17 19:03:33 +01:00
Marco Trevisan (Treviño)
9f3272f296
test-fpi-device: Use smart pointer to handle CB data
2020-01-17 18:43:01 +01:00
Marco Trevisan (Treviño)
456522397a
verify: Add match callback report
2020-01-16 20:24:42 +01:00
Marco Trevisan (Treviño)
0889ec20a8
fp-device: Remove confusing success parameter on FpMatchCb
...
This was added as alias to the error check, but given we're passing to the
callback both the error and the match itself, we can just avoid adding an
extra parameter that could be confusing (as may imply that the matching
happened).
Also clarify the documentation and ensure that the match value is properly
set in tests.
2020-01-16 20:24:42 +01:00
Marco Trevisan (Treviño)
30c783cbeb
examples: add FP_COMPONENT definitions
2020-01-16 14:37:07 +01:00
Marco Trevisan (Treviño)
078cea1709
verify: Add a verify_quit convenience function
...
It ends the loop if the device is not open, otherwise closes it and ends
the loop once done.
2020-01-16 14:36:41 +01:00
Marco Trevisan (Treviño)
bc8a5859e3
verify: Always close an open device before quitting the loop
2020-01-16 14:19:08 +01:00
Marco Trevisan (Treviño)
edd5d08bed
Merge remote-tracking branch 'origin/master' into tod
2020-01-08 19:04:08 +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) and Benjamin Berg
c9e1a7f283
examples: Iterate through fingers via first/last refs
2019-12-18 12:23:14 +00:00
Marco Trevisan (Treviño) and Benjamin Berg
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
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
Marco Trevisan (Treviño)
d255a91e97
meson: List deps in multiple lines, to have better diffs on changes
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
9ebb3fd231
meson: Parse all private headers
...
So we don't have to list each one in case we add new enums.
Also, as per previous commit we can reorder them alphabetically.
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
68b5c5d98f
fpi-ssm, fpi-usb-transfer: Use fwd-declarations to avoid headers dependencies
...
Don't make headers inclusions dependent on each others, given that FpiSsm
depends on FpiUsbTransfer and vice-versa, so fix the dependency cycle by
using forwarded declarations.
2019-12-17 14:38:19 +01:00
Marco Trevisan (Treviño)
7e2db8e988
driver_ids.h: Remove the legacy ID file
...
This is not used anymore by drivers as they all use GType's, so remove it
and any (dead) reference to it.
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
24d388f923
meson: Split single-line dependencies to reduce the diff on changes
...
Make it more readable and in case we add something else, it's easier to track
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
af42b3e468
ci: Increase the timeout multiplier for tests
...
Change the FEDORA_TAG to the current date in order to rebuild the image
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
edb09463f4
ci: Save coverage reports when running tests
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
42b1deaeea
tests: Add unit tests for fpi-ssm
...
Verify that the state machine actions are done as we expected, being the
main tool for drivers, better to check that is done as we expect.
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
fe828d0bb2
fpi-ssm: Clear delayed actions for parent and child on subssm start
...
While timeout was already cleared for parent, we didn't properly delete the
cancellable.
Although we'd warn anyways when starting the SSM, is still better to clear
any delayed action also for the sub-SSM
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
cf5473a55c
fpi-ssm: Make clear that the completed callback owns the error
2019-12-14 17:20:47 +01:00
Marco Trevisan (Treviño)
0471edbf10
fpi-ssm: Add debug message when a delayed state change is cancelled
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
299a797423
fpi-ssm: Bug on wrong state passed to jump_to_state_delayed
...
While remove the checks that are already part of the common function
fpi_ssm_set_delayed_action_timeout().
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
c594863639
fpi-ssm: Define autoptr cleanup function
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
3bb1840750
fpi-ssm: Use same argument names of header file
...
So we can mute a Gtk-doc parser warning
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
f31b8483d4
tests: Add fpi device tests
...
Verify drivers operations simulating a fake driver to check that the lib
interaction is correct.
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
324258bc8c
tests/meson: Support unit-tests non depending on virtual driver
...
Since tests depending on the fake device don't depend on virtual-image
driver anymore, let's change the way we organize the things, by putting
everything in the test lib, but enabling unit-tests depending on what they
depend on.
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
f578ebe82d
test-device-fake: Add fake test driver to verify fpi functions
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
98fa6efce3
fpi-device: Clarify ownership of parameters for progress call
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
c7b7f78273
fp-device: Call identify device class method on identification
...
Identify on device was broken because we were calling verify device method
on devices instead of the right one.
Thank you unit tests! :)
2019-12-14 17:20:46 +01:00
Marco Trevisan (Treviño)
b4c3756ab0
tests: Add fp-device basic unit tests
...
Use the virtual image device as base for now, while the new setup allows
to create easily fake device drivers without including the driver in
libfprint itself and test all the fpi_device functionalities.
2019-12-14 17:20:45 +01:00
Marco Trevisan (Treviño)
da46f53e82
tests: Add basic unit tests for fp-context
...
Link the tests with the private library using an utils library that will
be useful to share other tests functions
2019-12-14 17:20:45 +01:00
Marco Trevisan (Treviño)
eeddd8c7bc
fp-context, tools: Use auto-ptr to handle GTypeClass ownership
...
This also fixes a small leak we might have if reffing a type that was not a
virtual one.
2019-12-14 17:20:45 +01:00
Marco Trevisan (Treviño)
43a8c909bf
fp-context: Use an env to define a whitelist of drivers to enable
...
This avoids that we pick unwanted drivers when running the tests in a
machine that has some supported device attached.
2019-12-14 17:20:45 +01:00
Marco Trevisan (Treviño)
09576e5209
fpi-context: Make fpi_get_driver_types to return an array
...
No need to create one all the times and the fill it with what we need.
2019-12-14 16:57:11 +01:00
Marco Trevisan (Treviño)
8184e33dd6
meson: Fix syntax in the auto-generated fpi-drivers file
...
Better to be nice everywhere :)
2019-12-14 16:56:56 +01:00
Marco Trevisan (Treviño)
6f2b1f97da
fprint: Move drivers to private internal library
...
This allows us to finally remove fpi_get_driver_types from the exported list
of symbols.
2019-12-12 19:03:57 +01:00
Marco Trevisan (Treviño)
c3bf6fe863
meson: Rely on libfprint dependency to get root_include
...
No need to redefine it in all our tools
2019-12-12 18:55:08 +01:00
Marco Trevisan (Treviño)
5bed81025e
meson: Use files to track the map file presence
2019-12-11 20:07:13 +01:00