summaryrefslogtreecommitdiffstats
path: root/network/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'network/error.c')
-rw-r--r--network/error.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/network/error.c b/network/error.c
index a4b38190..87829dea 100644
--- a/network/error.c
+++ b/network/error.c
@@ -54,6 +54,15 @@ DBusHandlerResult err_failed(DBusConnection *conn, DBusMessage *msg,
NETWORK_ERROR_INTERFACE ".Failed", str));
}
+DBusHandlerResult err_connection_failed(DBusConnection *conn,
+ DBusMessage *msg, const char *str)
+{
+ return send_message_and_unref(conn,
+ dbus_message_new_error(msg,
+ NETWORK_ERROR_INTERFACE".ConnectionAttemptFailed",
+ str));
+}
+
DBusHandlerResult err_invalid_args(DBusConnection *conn,
DBusMessage *msg, const char *str)
{