diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-20 15:10:58 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-20 15:10:58 +0000 |
commit | c41c67efc320d5f8b15963246cc0c2aa006446d5 (patch) | |
tree | 0330298a51b4c9efa6267430a2f4c2594b6eeb3f /network/error.c | |
parent | 6e2ea33ba70a7d6b6ffa614a8fe57fe7662b7c70 (diff) |
Initial code of CreateServer and RemoveServer methods.
Diffstat (limited to 'network/error.c')
-rw-r--r-- | network/error.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/error.c b/network/error.c index 8c0924d5..50d33bc9 100644 --- a/network/error.c +++ b/network/error.c @@ -38,3 +38,17 @@ DBusHandlerResult err_unknown_connection(DBusConnection *conn, "Unknown connection path")); } +DBusHandlerResult err_generic(DBusConnection *conn, DBusMessage *msg, + const char *name, const char *str) +{ + return send_message_and_unref(conn, + dbus_message_new_error(msg, name, str)); +} + +DBusHandlerResult err_does_not_exist(DBusConnection *conn, DBusMessage *msg, + const char *str) +{ + return send_message_and_unref(conn, + dbus_message_new_error(msg, + NETWORK_ERROR_INTERFACE ".DoesNotExist", str)); +} |