summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 0adfffd9..a31b47f2 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -154,6 +154,14 @@ static DBusHandlerResult error_failed_errno(DBusConnection *conn,
return error_failed(conn, msg, desc);
}
+static DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn,
+ DBusMessage *msg, int err)
+{
+ return error_common_reply(conn, msg,
+ ERROR_INTERFACE ".ConnectionAttemptFailed",
+ err > 0 ? strerror(err) : "Connection attempt failed");
+}
+
static int auth_req_cmp(const void *p1, const void *p2)
{
const struct pending_auth_info *pb1 = p1;