summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:39:10 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:39:10 +0200
commit1f57429a07bbe7021889d9cfad6f4aa270d1d2c2 (patch)
treeba00bf83186eb814f3a8c7b7778932a3f8ee6665 /src/adapter.c
parentea35b0481357b3c7e12db6b1f19c9c35a179ce83 (diff)
Move error_failed to its usage places
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 8b76bb2e..0adfffd9 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -140,6 +140,12 @@ static inline DBusMessage *unsupported_major_class(DBusMessage *msg)
"Unsupported Major Class");
}
+static DBusHandlerResult error_failed(DBusConnection *conn,
+ DBusMessage *msg, const char * desc)
+{
+ return error_common_reply(conn, msg, ERROR_INTERFACE ".Failed", desc);
+}
+
static DBusHandlerResult error_failed_errno(DBusConnection *conn,
DBusMessage *msg, int err)
{