Bastien Nocera
7b06c4b7f3
Review possible errors and document them
...
Review all the possible errors and document them for each function.
2008-11-24 17:20:46 +00:00
Bastien Nocera
1abf51afa4
Don't crash the server if there's no devices
...
Big ninny just crashed because there's no fingerprint readers. Hoo,
hoo. My eyes are bleeding.
2008-11-24 17:20:46 +00:00
Bastien Nocera
9743d9d2a0
Register errors with D-Bus
...
So we get errors like:
net.reactivated.Fprint.Error.DiscoverPrints
instead of:
org.freedesktop.DBus.GLib.UnmappedError.FprintdErrorQuark.Code2
2008-11-24 17:20:46 +00:00
Bastien Nocera
af42ec70f3
Fix possible warning when timeout is enabled
...
We'd get a warning when the first device starts being used, but
we don't use --no-timeout.
2008-11-22 13:01:16 +00:00
Bastien Nocera
f1f2ae35f8
Fix "--no-timeout" argument
...
Fix logic error in the manager code causing it to exit when no
devices are in use even when --no-timeout is passed.
2008-11-22 13:00:47 +00:00
Bastien Nocera
3cd0a7aeaf
First pass at adding API docs through gtk-doc
...
Required a bit of mangling.
2008-11-21 18:15:51 +00:00
Bastien Nocera
e207203b44
Add GetDefaultDevice
...
Gives you the first device listed in GetDevices.
2008-11-21 18:15:21 +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
b0f2060628
Exit when no devices are in use
...
When no actions are happening on any of the devices, make the
daemon exit after 30 seconds.
2008-11-03 22:56:12 +00:00
Bastien Nocera
039c988f4b
Fix warning on startup
...
When there are no errors on startup, we'd get a warning
as we were copying a NULL GError
2008-05-16 18:21:20 +01:00
Bastien Nocera
3a0152e124
Fix _get_error() in the manager
...
Fix wrong assumption of semantics when fp_discover_devs()
returns NULL.
2008-05-16 12:17:48 +01:00
Bastien Nocera
017f770480
Clean up object creation code
...
Make all of FPrintManager's struct members private,
warn of errors using a _get_error() function, as object
creation can never fail.
The only error possible shouldn't really be an error though,
as it only means that no devices will be enumerated, but it
could tell us about newly plugged devices instead.
2008-05-14 16:07:25 +01:00
Daniel Drake
080e427651
Move to object oriented model
...
There is now a single Manager class shared between all apps.
Apps then share a collection of Device objects.
2008-03-05 23:52:33 +00:00