From 0ac929228aa1eb823f37776e2bbb84855417c66e Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 19 Mar 2007 13:57:52 +0000 Subject: Fix build, move errors to error file and add server registration. --- network/error.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'network/error.c') diff --git a/network/error.c b/network/error.c index 55c459da..8c0924d5 100644 --- a/network/error.c +++ b/network/error.c @@ -26,3 +26,15 @@ #endif #include "error.h" + +#define NETWORK_ERROR_INTERFACE "org.bluez.Error" + +DBusHandlerResult err_unknown_connection(DBusConnection *conn, + DBusMessage *msg) +{ + return send_message_and_unref(conn, + dbus_message_new_error(msg, + NETWORK_ERROR_INTERFACE ".UnknownConnection", + "Unknown connection path")); +} + -- cgit