diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-04 21:33:25 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-04 21:33:25 +0200 |
commit | ea35b0481357b3c7e12db6b1f19c9c35a179ce83 (patch) | |
tree | 6886eccd2a5f0228fa2ee083ae2f2f7660e7a087 /input/device.c | |
parent | 9d517bfd0fd5c950b7d0555979a15bf8bff6f481 (diff) |
Move create_errno_message to appropiate place
Diffstat (limited to 'input/device.c')
-rw-r--r-- | input/device.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |