Fix return value for GetDefaultDevice

Tell the front-end there's no devices available when there isn't
any, instead of erroring out.
This commit is contained in:
Bastien Nocera
2008-11-24 18:23:30 +00:00
committed by Daniel Drake
parent 64e415aaac
commit 69e987b335
3 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node PUBLIC
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" [
<!ENTITY ERROR_NO_SUCH_DEVICE "net.reactivated.Fprint.Error.NoSuchDevice">
]>
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name="net.reactivated.Fprint.Manager">
<annotation name="org.freedesktop.DBus.GLib.CSymbol"
@ -14,7 +18,8 @@
<doc:doc>
<doc:description>
<doc:para>
Enumerate all the fingerprint readers attached to the system.
Enumerate all the fingerprint readers attached to the system. If there are
no devices available, an empty array is returned.
</doc:para>
</doc:description>
</doc:doc>
@ -33,6 +38,10 @@
Returns the default fingerprint reader device.
</doc:para>
</doc:description>
<doc:errors>
<doc:error name="&ERROR_NO_SUCH_DEVICE;">if the device does not exist</doc:error>
</doc:errors>
</doc:doc>
</method>