Commit graph

29 commits

Author SHA1 Message Date
Bastien Nocera
5a90a806dc Remove all use of g_error()
Otherwise we get bug reports about crashers that aren't crashers.
2010-08-16 19:33:45 +01:00
Bastien Nocera
4ea1c48f9f Detect when a device is disconnected
Pretty hacky way to detect whether the device we're handling has
been disconnected during a verify or enrollment. This should allow
us to avoid users having to wait when somebody pulls the plug.
2009-01-27 16:45:47 -03:00
Bastien Nocera
3941c3bff2 Add fprintd-delete program
Deletes all the fingerprints on all the registered devices.
2008-12-04 13:23:51 +00:00
Bastien Nocera
5ba723e3f2 Fix program description
In the source header
2008-12-04 13:23:51 +00:00
Bastien Nocera
4efa0d4878 Fix stupidness in the fprintd-enroll
This fixes fprintd-enroll not working on devices that require
more than one swipe.
2008-12-04 13:23:51 +00:00
Bastien Nocera
af5b8a6e37 Don't error out when there's no fingerprints
Instead, print out some information about the device, and carry
on to the next one.
2008-12-04 13:23:50 +00:00
Bastien Nocera
6fc861a154 Use dbus_g_proxy_new_from_proxy
Removes the need to have the dbus connection around.
2008-11-24 17:20:45 +00:00
Bastien Nocera
c9fdeb47aa Use D-Bus properties instead of GetProperties
- Use D-Bus native properties instead of a GetProperties call.
- Fix a number of front-ends by registering the right signals and
marshallers following the "done" signal argument addition
- Fix VerifyStart call in the pam module
2008-11-22 13:00:48 +00:00
Bastien Nocera
26aab5dc28 Add a done argument to result signals
For verify and enroll, add a done argument so that front-end
know easily when they should be closing the device.
2008-11-21 18:15:51 +00:00
Bastien Nocera
874d8164b4 Add ScanType and NumberEnrollStages properties
Export the type of scan the device performs, and, when the device
is claimed, the number of enrollment stages.
2008-11-21 18:15:50 +00:00
Bastien Nocera
f7186c7ff0 Remove all uses of enums in the API
The clients aren't supposed to know the magic numbers for enums,
so use strings instead.
2008-11-21 18:15:50 +00:00
Bastien Nocera
5426b1a472 Use GetDefaultDevice
As we're not using the non-default device anyway.
2008-11-21 18:15:21 +00:00
Bastien Nocera
ac85e5927e List all the fingerprints for all the users
When listing, list all the fingerprints for all the users mentioned on
the command-line for each connected device, rather than just the
default one.
2008-11-21 18:15:21 +00:00
Bastien Nocera
1e43720c15 Remove use of finger number in the API
Use well-defined strings instead of numbers to pass around
specific fingers in the public API.
2008-11-21 18:15:21 +00:00
Bastien Nocera
924e08d2e8 Add device name property
Add GetProperties method, with a single "Name" properties into
the hashtable.
Use the device name property in the PAM module, and in the list test.
2008-11-21 18:15:21 +00:00
Bastien Nocera
fb4cbb910b Prefix the test binaries
So that we avoid clashing with distribution binaries.
2008-11-21 18:14:09 +00:00
Bastien Nocera
f93d8cbce2 Clean up device when the client disconnects
Track clients connected to each device using EggDbusMonitor.
When there are no more clients connected to the device, release it.

When no devices are used anymore, set up a timeout to exit within
30 seconds.
2008-11-03 22:56:12 +00:00
Bastien Nocera
4fa5552650 Add PAM module
Add a PAM module, and enable all the warnings
2008-11-03 22:53:44 +00:00
Bastien Nocera
15fbacd738 More identification work
- Add a finger selected signal, so that when an "automatic" finger
  is selected for verification, we know which one to scan
- Fix the finger print numbers list to use GPOINTER_TO_INT /
  GINT_TO_POINTER
- Make sure the gallery is NULL when there's no prints available
- Don't use identification when a finger number is provided
- Add support for selecting the finger number in verify
- Add support for fatal warnings there as well
2008-11-02 11:16:13 +00:00
Bastien Nocera
e8c36e9592 Rework the "SetUsername" functionality
- Remove SetUsername itself, and add a username parameter to DeviceClaim,
  ListEnrolledFingers and DeleteEnrolledFingers.
- For each of those calls, check that the incoming connection is allowed
  to operate on that particular username
- Don't require a claimed device to list or remove fingerprints
- Clean up username and sender when releasing the device
- Modify the storage backend to not require an opened device to list
  or delete fingerprints
- Add a simple test program to list registered fingerprints for the
  usernames passed as argument
2008-11-02 11:16:13 +00:00
Bastien Nocera
bd2debc01e Update storage code to allow plugins
Add naive plugin support to the storage code, it will
load plugins from $(libdir)/fprintd/modules, given the configuration
from /etc/fprintd.conf.
2008-11-02 11:16:13 +00:00
Bastien Nocera
81933406d0 Support setting the username in the tests
Allow enroll and verify to optionally set a username. Makes
testing easier.
2008-11-02 11:16:13 +00:00
Bastien Nocera
bb1210981b Kill LoadPrintData and UnloadPrintData
They were just doing nothing interesting for us, and might
cause problems if data changes under us (say, remote storage).
2008-11-02 11:16:13 +00:00
Bastien Nocera
b1b5e2b495 Kill ListEnrolledFingersFromStorage
Last FromStorage variant killed, we need to make sure all
the functions now use the storage functions internally,
otherwise we won't be able to load from the place we save.
2008-05-22 17:55:16 +01:00
Bastien Nocera
5d4e23ab32 Kill LoadPrintDataFromStorage
First FromStorage variant to go
2008-05-22 17:55:15 +01:00
Bastien Nocera
54583f4750 Don't hardcode username
We use the current user's username instead.
2008-05-22 17:55:15 +01:00
Bastien Nocera
6cbb079619 Make the daemon a system daemon
With this patch, and the D-Bus activation patches posted earlier the
fprintd daemon is started automatically when needed.

We should have a way to exit it nicely when there are no users
anymore as well...
2008-05-13 23:10:04 +01:00
Vasily Khoruzhick
1f54a0c363 Initial storage implementation
[dsd: changed from /etc/fprint to /var/lib/fprint]
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
2008-04-06 23:49:28 +01:00
Daniel Drake
2a1aa4e0c0 Rename examples to tests
Real clients won't have the xml available, so calling these "examples"
is not appropriate.
2008-03-09 10:51:48 +00:00