summaryrefslogtreecommitdiffstats
path: root/input/error.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-21 18:02:00 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-21 18:02:00 +0000
commit2bdadb9a01d23b0118161dfc598cc688ef5719e5 (patch)
treef046fcb1db7fbc6612251491ce3b9a8ba7ed8971 /input/error.c
parent75eb97849ccc85e25ca303c90e0fa4ccb03cad2f (diff)
input: added already connected error
Diffstat (limited to 'input/error.c')
-rw-r--r--input/error.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/input/error.c b/input/error.c
index 658bdeff..24492ae2 100644
--- a/input/error.c
+++ b/input/error.c
@@ -66,6 +66,14 @@ DBusHandlerResult err_connection_failed(DBusConnection *conn,
str));
}
+DBusHandlerResult err_already_connected(DBusConnection *conn, DBusMessage *msg)
+{
+ return send_message_and_unref(conn,
+ dbus_message_new_error(msg,
+ INPUT_ERROR_INTERFACE ".AlreadyConnected",
+ "Already connected to this device"));
+}
+
DBusHandlerResult err_already_exists(DBusConnection *conn,
DBusMessage *msg, const char *str)
{