summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-22 20:15:59 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-22 20:15:59 +0000
commite46f647bc95dcedf962ba2741670e45c65e8f34c (patch)
tree8e51de60bd498e57c34eca1b3ad6d1ea15589980
parent0f7f9e9d9fc5493258d2b64b6ae8085c07d177d9 (diff)
Add err_connection_failed.
-rw-r--r--network/error.c9
-rw-r--r--network/error.h3
2 files changed, 12 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)
{
diff --git a/network/error.h b/network/error.h
index 29b73908..28ccdb07 100644
--- a/network/error.h
+++ b/network/error.h
@@ -29,5 +29,8 @@ DBusHandlerResult err_does_not_exist(DBusConnection *conn,
DBusMessage *msg, const char *str);
DBusHandlerResult err_failed(DBusConnection *conn, DBusMessage *msg,
const char *str);
+DBusHandlerResult err_connection_failed(DBusConnection *conn,
+ DBusMessage *msg, const char *str);
+
DBusHandlerResult err_invalid_args(DBusConnection *conn,
DBusMessage *msg, const char *str);