Commit Graph

1428 Commits

Author SHA1 Message Date
Laurent Bigonville f7d8e9f935 New upstream release (1.0) 2019-08-23 17:11:08 +02:00
Laurent Bigonville 1799dd159a Update upstream source from tag 'upstream/1.0'
Update to upstream version '1.0'
with Debian dir b867236012
2019-08-23 17:06:46 +02:00
Laurent Bigonville 91c67d430e New upstream version 1.0 2019-08-23 17:06:45 +02:00
Bastien Nocera 823f2c1067 1.0 V_1_0 2019-08-08 14:54:06 +02:00
Bastien Nocera 19732341d6 lib: Fix overwriting action after deactivating callback
If one of the callbacks called from fpi_imgdev_deactivate_complete()
was reactivating the device, then we would be overwriting whichever
"action" got set in the callback, leading to
fpi_imgdev_activate_complete() failing as it doesn't handle the "none"
action.

Reset the action before calling the callbacks.
2019-08-08 12:43:03 +00:00
Bastien Nocera 0e44eb4c1c elan: Better debug when skipping commands 2019-08-08 12:43:03 +00:00
Bastien Nocera 50461b4d7d lib: Make fp_async_*_stop() not throw warning if already in right state
Make it possible to call fp_async_*_stop() multiple times without
penalty.
2019-08-08 12:43:03 +00:00
Bastien Nocera c11126181e aeslib: Fix use-after-free in aeslib
If a USB transfer is started but not completed in one go, the wdata we
pass to continue_write_regv() will already be freed by the time we try
to use it again.

Only free() the wdata on error, or when the USB transfer is completed.

Closes: #180
2019-08-08 14:18:47 +02:00
Bastien Nocera 658c301e3c lib: Use memmove(), g_memmove() is deprecated 2019-08-05 18:12:06 +00:00
Bastien Nocera dce52ed081 vfs5011: Use memmove(), g_memmove() is deprecated 2019-08-05 18:12:06 +00:00
Bastien Nocera f309f586c9 ci: Add ABI check
Last ABI break was when we fixed the return value for fp_get_pollfds()
in commit 056ea54.
2019-08-05 20:05:13 +02:00
Igor Filatov ae1b10dba8 elan: Fix frame leak in elan_submit_image 2019-08-05 18:43:04 +02:00
Bastien Nocera 860a256f4b HACKING: Clarify the intent of the license 2019-08-05 13:37:28 +02:00
Bastien Nocera cb2f46ed08 HACKING: Fix a typo 2019-08-05 13:18:18 +02:00
Bastien Nocera 13deaa66fd lib: Fix a typo 2019-08-05 13:18:15 +02:00
Bastien Nocera 3597a5b0ed img: Fix a typo 2019-08-05 13:17:55 +02:00
Bastien Nocera 0352995cb3 data: Fix a number of typos 2019-08-05 13:17:33 +02:00
Bastien Nocera e9041da7f4 uru4000: Fix a typo 2019-08-05 13:17:30 +02:00
Bastien Nocera 252180e088 upektc: Fix a typo 2019-08-05 13:17:08 +02:00
Bastien Nocera 6361c208bd upeksonly: Fix a number of typos 2019-08-05 13:16:18 +02:00
Bastien Nocera 2ef8ace543 etes603: Fix a typo 2019-08-05 13:16:14 +02:00
Bastien Nocera 0400bcc85e vfs*: Fix a number of typos 2019-08-05 13:13:10 +02:00
Bastien Nocera 76db6a5a16 aes*: Fix a number of typos 2019-08-05 13:12:45 +02:00
Bastien Nocera 5b171f9577 Add code of conduct document 2019-07-25 12:04:39 +02:00
Laurent Bigonville 88730a852d debian/README.source: Document how the list of devices in debian/libfprint0.postinst is generated 2019-07-12 02:13:53 +02:00
Laurent Bigonville 8539a0984e debian/libfprint0.postinst: Call udevadm --trigger also for the new supported readers 2019-07-12 01:15:49 +02:00
Laurent Bigonville 6a1a956029 debian/rules: Install the NEWS file as the upstream changelog 2019-07-12 01:03:03 +02:00
Laurent Bigonville c813d2873f debian/control: Add libglib2.0-doc to Build-Depends-Indep, this allows gtk-doc to properly resolve all the links in the documentation 2019-07-12 01:02:15 +02:00
Laurent Bigonville 8d01ce9b7e debian/libfprint0.symbols: Add the Build-Depends-Package field 2019-07-12 00:55:31 +02:00
Laurent Bigonville 1c8d4fe027 debian/control: Bump Standards-Version to 4.4.0 (no further changes) 2019-07-12 00:55:29 +02:00
Laurent Bigonville c18510091e debian/libfprint0.symbols: Add newly exported symbol 2019-07-12 00:55:05 +02:00
Laurent Bigonville 5ebcc1cedd debian/rules: Disable the build of the GTK+ test application for now, this is not ready yet 2019-07-12 00:54:56 +02:00
Laurent Bigonville 8fbeacf13b Other patches: Refreshed 2019-07-12 00:19:50 +02:00
Laurent Bigonville 6fc665135d d/p/lib-Add-accessor-for-minutia-coordinates.patch, d/p/fix_ftbfs_meson.patch: Dropped, applied upstream 2019-07-12 00:19:50 +02:00
Laurent Bigonville d116695da6 debian/control: Update Vcs-* fields (Closes: #909256) 2019-07-12 00:19:44 +02:00
Laurent Bigonville 5b1ca62c7c New upstream release 2019-07-12 00:07:40 +02:00
Laurent Bigonville e3adf40324 Update upstream source from tag 'upstream/0.99.0'
Update to upstream version '0.99.0'
with Debian dir 53fd957197
2019-07-12 00:01:49 +02:00
Laurent Bigonville 521b7a3029 New upstream version 0.99.0 2019-07-12 00:01:48 +02:00
Laurent Bigonville fa439ded05 debian/gbp.conf: Set pristine-tar and upstream-vcs-tag 2019-07-12 00:01:39 +02:00
Benjamin Berg 4cec28416e lib: Remove state from fp_img_driver activate handler
The state was always AWAIT_FINGER and it was never used by any driver
(except for error checking). So remove it, in particular as a correct
state change will be done after activation anyway.

The only driver with code that actually did anything based on this was
the URU4000 driver. However, all it did was an explicit state change
execution. This is not necessary, as the state_change handler is called
anyway (i.e. we now only write the AWAIT_FINGER register once rather
than twice).

Manual changes plus:

@ init @
identifier driver_name;
identifier activate_func;
@@
struct fp_img_driver driver_name = {
    ...,
    .activate = activate_func,
    ...,
};
@ remove_arg @
identifier dev;
identifier state;
identifier init.activate_func;
@@
activate_func (
	struct fp_img_dev *dev
-	, enum fp_imgdev_state state
	)
{
	<...
-	if (state != IMGDEV_STATE_AWAIT_FINGER_ON) { ... }
	...>
}
2019-06-18 18:19:38 +02:00
Benjamin Berg 3b32baccf6 fdu2000: Remove driver as it has been defunct for long
The driver was never ported to the new asynchronous model, meaning it
has been defunct since some time in 2008. Remove the driver, as
seemingly no one has complained about this and we have no proper way to
even verify a port is correct.
2019-06-18 15:54:57 +00:00
Benjamin Berg 16875d7776 examples: Port enroll and verify examples to new storage
This ports the enroll and verify examples to the new storage so that
they do not need any deprecated API anymore.
2019-06-13 13:12:15 +00:00
Benjamin Berg a9600e23a1 examples: Link examples to the new GVariant based storage
For now just compile and link it, we do not yet use the new storage
code.
2019-06-13 13:12:15 +00: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
Benjamin Berg ef90938eb9 build: Bump GLib dependency to 2.50 and add guards
libfprint already uses G_DEBUG_HERE in a lot of places which requires
GLib 2.50. Also add the appropriate defines so that usage of newer API
will result in warnings.
2019-06-13 13:56:35 +02:00
Benjamin Berg 66891274a7 build: Remove header files from nbis_sources
There is no need to list them in the sources.
2019-06-12 16:10:04 +02:00
Benjamin Berg f52276bd06 build: Remove header files from libfprint_sources
There is no need to list them in the sources.
2019-06-12 16:07:44 +02:00
Benjamin Berg 7dce8dbfaa build: Remove header files from drivers_sources
It is not necessary to list all the headers in the drivers_sources list,
so remove them.
2019-06-12 16:07:08 +02:00
Benjamin Berg 3b757ee738 build: Fix source files of upekts and upketc drivers
The upekts driver needs upek_proto.c while the upektc driver does not.
Move the corresponding source file entries so that both drivers compile
standalone.
2019-06-12 16:07:05 +02:00
Benjamin Berg 0a45ed7af6 data: Deprecate print storage API
The only API user currently seems to be the examples. fprintd has its
own storage and that will be a good idea in general.

So deprecate the API, we'll need to find a different solution for the
examples eventually.
2019-06-11 18:23:56 +02:00