summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:33:25 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-04 21:33:25 +0200
commitea35b0481357b3c7e12db6b1f19c9c35a179ce83 (patch)
tree6886eccd2a5f0228fa2ee083ae2f2f7660e7a087
parent9d517bfd0fd5c950b7d0555979a15bf8bff6f481 (diff)
Move create_errno_message to appropiate place
-rw-r--r--common/error.c6
-rw-r--r--common/error.h2
-rw-r--r--input/device.c6
3 files changed, 6 insertions, 8 deletions
diff --git a/common/error.c b/common/error.c
index 00fa9e36..5b0fe36a 100644
--- a/common/error.c
+++ b/common/error.c
@@ -35,12 +35,6 @@
#include "error.h"
-DBusMessage *create_errno_message(DBusMessage *msg, int err)
-{
- return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed",
- strerror(err));
-}
-
/**
org.bluez.Error.ConnectionAttemptFailed:
diff --git a/common/error.h b/common/error.h
index 478b0bd5..4182cfe7 100644
--- a/common/error.h
+++ b/common/error.h
@@ -27,8 +27,6 @@
#define ERROR_INTERFACE "org.bluez.Error"
-DBusMessage *create_errno_message(DBusMessage *msg, int err);
-
DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn,
DBusMessage *msg,
int err);
diff --git a/input/device.c b/input/device.c
index 8f459c1d..984c35bd 100644
--- a/input/device.c
+++ b/input/device.c
@@ -795,6 +795,12 @@ static DBusMessage *device_connect(DBusConnection *conn,
return NULL;
}
+static DBusMessage *create_errno_message(DBusMessage *msg, int err)
+{
+ return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed",
+ strerror(err));
+}
+
static DBusMessage *device_disconnect(DBusConnection *conn,
DBusMessage *msg, void *data)
{