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)
2158c5e2d1
cleanup: Use #pragma once everywhere
...
Remove legacy header guards, and use compiler newer features.
2019-12-17 14:38:19 +01:00
Benjamin Berg
113bef8f3f
examples: Fix double device closing in manage-prints
...
The manage-prints command would close the device twice when the user
hits an invalid number or 'n' and no prints need to be deleted.
Simply remove the erroneous call to fix the issue.
2019-12-16 10:20:49 +00: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)
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)
1d48b70f38
storage: Include storage header so that we have declarations
2019-12-04 18:52:18 +01:00
Marco Trevisan (Treviño)
e64c18f8de
cpp-test: Fix indentation
2019-12-04 16:06:24 +01:00
Marco Trevisan (Treviño)
7e70344b4a
meson: Use add_project_arguments for common cflags
...
We were passing around the common cflags and setting them for each library
or executable, but this is just a repetition given we can just use
add_project_arguments for this.
2019-12-04 16:06:24 +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)
876924df6a
examples: Handle the cases where the print date is not set
2019-11-27 19:14:35 +01:00
Marco Trevisan (Treviño)
099fa9f005
meson: Use preferred syntax everywhere
...
Meson files are normally using 4-spaces to indent and functions use first
parameter on the same line while others at next indentation level, not
following the parenthesis indentation.
So adapt libfprint to follow the meson standard.
2019-11-25 18:59:46 +01:00
Marco Trevisan (Treviño)
76dd4066f3
verify: Ensure we set set the autoptr value to NULL at definition
2019-11-25 18:59:46 +01:00
Marco Trevisan (Treviño)
1319daba54
examples: allow to select multiple devices
...
Since there might be external USB readers and embedded ones, better to allow
easily to select them all in examples.
2019-11-20 20:38:06 +01:00
Marco Trevisan (Treviño)
39e3e2b794
examples: Move discover_device function to utilities
...
While there are various functions which similar usage in all the examples,
I'd prefer to keep each example to be self-containing most of the things.
However some clearly repeated action can be moved to a single codebase.
2019-11-20 20:38:06 +01:00
Marco Trevisan (Treviño)
ab804f7f49
examples: Make possible to select the finger to enroll/verify
...
Move some common functions to an utilities file.
2019-11-20 20:38:06 +01:00
Marco Trevisan (Treviño)
d1fb1e26f3
Uncrustify everything except for nbis
2019-11-20 20:38:06 +01:00
Benjamin Berg
cddd0f4653
examples: Remove old verify_live example
...
The example has not been ported and it is not very useful as verify
already shows how everything works.
2019-11-20 20:38:06 +01:00
Benjamin Berg
256c7cea07
examples: Remove x11 based examples
...
These examples have not been ported. In addition, they are also not very
useful these days, as the demo application offers a much nicer view to
view images from a sensor.
2019-11-20 20:38:06 +01:00
Marco Trevisan (Treviño)
d91ec2d044
examples: Add manage-prints test to list and delete prints
...
Simple example program to list prints in a device with own storage and that
allow to delete them (by manual selection or full deletion).
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
dd40aeaa79
examples: Add sendvirtimg.py script to send a print to virtual_imgdev
...
With this script it is possible to test libfprint/fprintd without any
hardware device. The image needs to be provides as a PNG with the alpha
channel storing the print data.
See the comment in the file on how the script can be used.
2019-11-20 11:03:09 +01:00
Benjamin Berg
9b175a7681
examples: Add PNGs for NIST example prints
...
These PNGs were generated using gimp simply by using the greyscale image
itself as an alpha mask. The reason to do this is solely for easier
consumption together with cairo A8 surfaces.
2019-11-19 21:07:58 +01:00
Benjamin Berg
d67a801f1f
examples: Add a few example prints from NIST
...
These prints are from NIST and are not copyrighted. They were sourced
via wikipedia.
2019-11-19 21:07:58 +01:00
Benjamin Berg
059fc5ef7d
examples: Disable existing examples
...
These examples will stop working with the following API changes. Updated
examples may be re-enabled again later.
2019-11-19 21:07:51 +01:00
Benjamin Berg
ec8dd6410e
build: Make glib a libfprint dependency
...
We are going to use GLib types in the public API now.
2019-11-18 15:39:35 +01: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
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
Peter Maatman
6ba9439bbb
examples: Remove sleep call in enroll examples
...
The call to sleep(1) inside of the enrollment loop caused a crash
on at least the etes603 driver.
Because in fp_enroll_finger_img the function enters an event
handling loop. This loop needs to start before the next libusb
event timeout. Which would not happen in the etes603 driver
because the timeout there was set to 1 second as well.
2019-05-14 11:38:33 +02:00
Bastien Nocera
1ac815e457
examples: Fix integer overflow warnings
2018-05-25 13:40:33 +02:00
Bastien Nocera
15afe43cf0
examples: Replace deprecated fp_set_debug()
2018-05-24 12:43:53 +02:00
Bastien Nocera
dac153d24a
build: Port to meson
...
And remove the autotools. Faster, cleaner.
https://bugs.freedesktop.org/show_bug.cgi?id=106514
2018-05-15 10:46:54 +02:00
Bastien Nocera
3bf55a3e07
examples: Fix compile-time warning
...
Fix "function declaration isn’t a prototype" warning
2018-05-14 17:35:51 +02:00
Mark Harfouche
7ff667f58d
examples: Fix memory leaked by device discovery
...
https://bugs.freedesktop.org/show_bug.cgi?id=105427
2018-03-11 13:46:00 +01:00
Vasily Khoruzhick
0e843ad6b3
build: fix autoreconf warnings
...
Replace AC_LANG_PROGRAM with AC_LANG_SOURCE and INCLUDES with AM_CFLAGS to fix
autoreconf warnings
https://bugs.freedesktop.org/show_bug.cgi?id=62748
2013-06-26 14:13:21 +02:00
Bastien Nocera
9e92d4cf2c
examples: Fix compile-time warnings
...
A few signedness problems.
2012-11-06 09:30:40 +01:00
Bastien Nocera
6bfc516553
Add test program for C++ support
...
So that we don't regress
2010-09-08 11:03:58 +01:00
Bastien Nocera
014b933b2b
Add gdk-pixbuf support
...
When imaging support is required, we prefer to use gdk-pixbuf,
as it's already on things like Live CDs.
Also fix the examples building against the system libfprint.
2010-08-17 11:35:06 +01:00
Daniel Drake
7c44c86d4c
Logging control
...
Don't log anything by default, and let the applications change the log
level.
2008-11-20 17:23:04 +00:00
Daniel Drake
c1f8581ec9
Cleanup discover_device in examples
...
Andrei Tchijov pointed out that the discover_device() function is written
in a strange way.
2007-12-01 13:00:33 +00:00
Daniel Drake
5485f8031d
Return images through enroll/verify path
...
Added new API functions to obtain images, even when scans are bad, perhaps
a useful way to show the user just how good/bad the scan actually was.
Drivers and examples updated accordingly.
2007-11-15 09:54:39 +00:00
Daniel Drake
a86cd51959
Clean up on exit, and convert to singly-linked-lists
...
This adds fp_exit() to the public API, intended to be called while the
driving app is shutting down.
2007-11-15 09:54:38 +00:00
Daniel Drake
b9238e8b8a
Support images with variable dimensions
...
For example, AES2501 returns images that vary in height.
2007-11-12 23:28:45 +00:00
Daniel Drake
f498fcd1ea
Fix img_capture_continuous build
...
Also enable it in the default development build
2007-11-04 19:10:23 +00:00
Daniel Drake
7e6f25908b
remove imgdev abstraction from public API
...
Make it easier for application developers, don't have to care about this
level of abstraction which we're intending to make superfluous to them.
2007-11-02 17:06:44 +00:00
Daniel Drake
351ccb4ab7
Add XV-based img_capture_continuous example
2007-10-27 15:17:19 +01:00
Daniel Drake
da071ff8a2
Add API for freeing images
2007-10-27 15:16:54 +01:00
Daniel Drake
9960a7ff34
Image standardization
...
Initially supports flipping and colour inversion
2007-10-27 14:24:57 +01:00
Daniel Drake
f3a838e856
Initial implementation for image device access and capture
...
Also added new example: img_capture
2007-10-27 00:09:18 +01:00