Benjamin Berg
90cbcd7fb5
tests: Update README to describe pcapng replay
2021-06-17 14:35:47 +02:00
Benjamin Berg
182367a079
tests: Use pcap recording for synaptics and test clear_storage
2021-06-17 14:35:47 +02:00
Benjamin Berg
daaafc80c3
tests: Detect pcap vs. ioctl recording and run correct one
2021-06-17 14:21:08 +02:00
Benjamin Berg
c989cc4b95
ci: Build umockdev from git for pcap replay support
2021-06-17 14:21:08 +02:00
Vincent Huang
0edae7b641
synaptics: Remove PID 0xE9
2021-06-17 08:00:47 +00:00
Vincent Huang
49e3963783
synaptics: Return success when deleting a print that doesn't exist in
...
the database or database empty
2021-06-16 15:53:46 +00:00
Aris Lin
040d0d34fd
synaptics: Send a cancel to sensor if it returns busy
...
fix #380
2021-06-16 15:40:02 +00:00
Nelson Jeppesen
82c406dace
goodixmoc: Add PID 6A94
2021-06-07 10:40:45 +00:00
Benjamin Berg
046607add6
device: Add void return type tag to fp_device_delete_print_sync
...
This way it matches the other _sync functions that return a boolean just
to show that an error was set.
2021-05-14 15:28:54 +00:00
Benjamin Berg
9c0cd3fb23
device: Move fp_device_clear_storage_sync into _sync block
...
Just so that all the _sync functions are together.
2021-05-14 15:28:54 +00:00
Benjamin Berg
439223cac3
virtual-device-storage: Actually clear storage when requested
2021-05-14 15:28:54 +00:00
Benjamin Berg
992a207ede
virtual-device: Refactor command handling and add CONT command
...
This command is useful to immediately continue rather than waiting for
input. It is only useful for non-scanning device actions and can be
important when steps need to be explicitly skipped (e.g. to inject an
error in the second command without a way to wait in between).
2021-05-14 15:28:54 +00:00
Benjamin Berg
ae6be6837b
doc: Use includes from the source diretory
...
Before we try to use installed system includes, which is obviously not
the best idea.
2021-05-14 15:28:54 +00:00
Benjamin Berg
261ba3a4a4
meson: Add -Wswitch-enum
...
This would have caught the issue where we forgot to add
FPI_DEVICE_ACTION_CLEAR_STORAGE to fpi_device_action_error.
2021-05-14 15:28:54 +00:00
Benjamin Berg
e9dddcc87a
virtual-image: Fix compilation with -Wswitch-enum
2021-05-14 15:28:54 +00:00
Benjamin Berg
7e02f3faf9
virtual-device: Avoid/Fix -Wswitch-enum warnings
2021-05-14 15:28:54 +00:00
Benjamin Berg
b61303500e
utilities: Explicitly list default enum value
2021-05-14 15:28:54 +00:00
Benjamin Berg
668b3517a9
upeksonly: Explicit list default enum value
2021-05-14 15:28:54 +00:00
Benjamin Berg
657fe85c25
device: Add missing CLEAR_STORAGE to fpi_device_action_error
...
This was missed in the previous commit that added the support.
2021-05-14 15:28:54 +00:00
Aris Lin
4d5e2775b2
synaptics: add new PID 0xF0 and 0x103
2021-05-05 15:24:25 +08:00
Vincent Huang
8a04578847
synaptics: Add clear_storage() and remove list()
2021-04-29 11:49:27 +00:00
Vincent Huang
77e95aa545
fp-device: Add fp_device_clear_storage and clear_storage vfunc
2021-04-29 11:49:27 +00:00
Benjamin Berg
b9df7a4e70
device: Attach sources to correct main context
...
We were attaching the sources to the default main context. Instead, we
should be attaching them to the current tasks main context (or, failing
that, the current thread local main context).
2021-04-28 22:16:37 +02:00
Benjamin Berg
1ca56adff5
usb-transfer: Use fpi_device_add_timeout instead of g_idle_add
...
g_idle_add attaches to the default main context, but the rest of
libfprint is using the thread local main context. Switch to use the
internal fpi_device_add_timeout API for the workaround in order to
not rely on the default main context.
2021-04-28 22:16:37 +02:00
Benjamin Berg
d683b271d4
ssm: Remove delayed action GCancellable integration
...
Unfortunately, the implementation was not thread safe and was not
sticking to the thread local main context.
In addition to this, it is not entirely clear to me how this API should
behave. The current approach is to simply cancel the transition with the
state machine halting in its current state. Instead, it could also make
sense for cancellation to cause the state machine to return a
G_IO_ERROR_CANCELLED.
As such, simply remove the feature for now. If anyone actually has a
good use-case then we can add it again.
2021-04-28 22:16:37 +02:00
Benjamin Berg
94e86875ae
context: Remove idle sources and use thread local context
...
libfprint uses the thread local context in almost all cases. Update
FpContext to also use it and make sure that any sources are removed when
the FpContext object is finalized. Otherwise we may run into
use-after-free issues.
2021-04-28 22:16:37 +02:00
Benjamin Berg
511d456006
context: Use g_signal_connect_object for removal handling
...
Technically the API user might not keep the FpContext around after getting
the device object. Really bad idea, but we shouldn't rely on that.
2021-04-28 22:16:34 +02:00
Benjamin Berg
11e379050f
goodixmoc: Ensure power button shield is always turned off
...
Use the new cleanup feature of the SSM to ensure that the power button
shield is turned off again even if the operation is cancelled.
2021-04-28 20:10:20 +00:00
Benjamin Berg
9416f91c75
ssm: Add cleanup state feature
...
In some situations one may want to guarantee that the last steps of an
SSM are run even when the SSM is completed early or failed.
This can easily be done by making fpi_ssm_mark_completed jump to the
next cleanup stage when called (this also includes mark_failed). Due to
the mechanism, it is still possible to explicitly jump cleanup states by
using fpi_ssm_jump_to_state, including a jump to the final state in
order to skip all cleanup states.
2021-04-28 20:10:20 +00:00
Benjamin Berg
c4ae89575a
ssm: Fix up the SSM documentation a bit
2021-04-28 20:10:20 +00:00
Benjamin Berg
04f6cac7ec
elan: Add PID 0c63
...
Users are reporting that the sensor works fine.
Closes : #357
2021-04-28 22:04:16 +02:00
Benjamin Berg
d2981fc6a4
elan: Add PID 0c4f
...
Users are reporting that the sensor works fine.
2021-04-28 22:04:16 +02:00
Benjamin Berg
8c9167d836
elan: Add PID 0c3d
...
Users are reporting that the sensor works fine.
Closes : #214
2021-04-28 15:26:05 +02:00
Marco Trevisan (Treviño)
df36c66730
tod: Use dynamically defined version script
...
So we don't have to manage the soname manually
2021-04-14 18:15:07 +02:00
Marco Trevisan (Treviño)
35bcd4326c
libfprint-tod.ver: Add new symbols to newer TOD subversion
...
This should be something to do every time, as it may allow to define
multiple symbol versions, if something changes upstream.
2021-04-14 18:14:35 +02:00
Marco Trevisan (Treviño)
00128e11fd
README: Link to TOD README file
2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño)
81ecee3ead
tests/tod-drivers: Add newly supported types
2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño)
18b3acdfb0
fpi-spi-transfer: Add structure padding
2021-04-13 22:35:34 +02:00
Marco Trevisan (Treviño)
1d7a561b0b
tod-inspector: Add support reading features
2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño)
a79a8d0e22
device: Keep device type ordering as default
2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño)
344d5cb2a9
fpi-device: Reduce padding on FpIdEntry to make space to new elements
2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño)
c906b30cba
tod: Add support for device features, keeping ABI compatibility
2021-04-13 22:35:28 +02:00
Marco Trevisan (Treviño)
eb329903b4
test-fp-device-tod: Ignore deprecated functions and use new ones
2021-04-13 22:17:39 +02:00
Marco Trevisan (Treviño)
20ac5c10a4
Merge branch 'origin/master' into tod
2021-04-13 22:17:37 +02:00
Marco Trevisan (Treviño)
58756ab62e
tests: Ensure that we don't break ABI with expected TODv1 structures
...
We can check whether each relevant structure element has not changed and
that the supported enum and flag values didn't change value.
2021-04-13 22:14:56 +02:00
Marco Trevisan (Treviño)
e5e999de2c
fpi-image: Add missing padding
...
This breaks the ABI with such TOD drivers, but we don't have any using
an image device so far, so it's a safe break.
2021-04-13 22:14:56 +02:00
Marco Trevisan (Treviño)
9aa3060d32
ci: Expose valgrind test logs
2021-04-13 19:39:50 +02:00
Marco Trevisan (Treviño)
9a1dcaa801
tests: Use native meson exec wrapper in test setups instead of our script
...
No need to provide a script that will break usage of `meson test --gdb`
when we can use a native and cleaner alternative.
We can then ignore LIBFPRINT_TEST_WRAPPER in basic tests, while it is
still needed by umockdev tests.
2021-04-13 19:38:58 +02:00
Marco Trevisan (Treviño)
683ac48e21
libfprint2-sections: Add missing FpFingerStatusFlags
2021-04-12 22:14:06 +02:00
Marco Trevisan (Treviño)
3b34fc9b5b
ci: Expose coverage report and meson logs in MRs
2021-04-12 22:14:06 +02:00