diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-21 18:04:04 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-21 18:04:04 +0000 |
commit | 11676370a14d77b9fc04af03143fe56ab58753cd (patch) | |
tree | 601baf3e0252622419117db215e3a1e4577ee177 /network/error.c | |
parent | 2bdadb9a01d23b0118161dfc598cc688ef5719e5 (diff) |
Remove duplicate code and some minor fixes.
Diffstat (limited to 'network/error.c')
-rw-r--r-- | network/error.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/network/error.c b/network/error.c index 50d33bc9..28bd54ae 100644 --- a/network/error.c +++ b/network/error.c @@ -52,3 +52,11 @@ DBusHandlerResult err_does_not_exist(DBusConnection *conn, DBusMessage *msg, dbus_message_new_error(msg, NETWORK_ERROR_INTERFACE ".DoesNotExist", str)); } + +DBusHandlerResult err_failed(DBusConnection *conn, DBusMessage *msg, + const char *str) +{ + return send_message_and_unref(conn, + dbus_message_new_error(msg, + NETWORK_ERROR_INTERFACE ".Failed", str)); +} |