diff options
Diffstat (limited to 'input/error.c')
-rw-r--r-- | input/error.c | 8 |
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) { |