summaryrefslogtreecommitdiffstats
path: root/network/error.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-19 13:57:52 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-19 13:57:52 +0000
commit0ac929228aa1eb823f37776e2bbb84855417c66e (patch)
tree841f767e50e07f1e7700dd08e9ffe80381c80445 /network/error.c
parent851ad267e554850ae2cbfd486922cbcfb897f8b5 (diff)
Fix build, move errors to error file and add server registration.
Diffstat (limited to 'network/error.c')
-rw-r--r--network/error.c12
1 files changed, 12 insertions, 0 deletions
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"));
+}
+