diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-09-10 00:19:00 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-09-10 00:19:00 +0200 |
commit | af3684270a0fe4a753e5199dfa58acd7f9b2038c (patch) | |
tree | 673180f5651887ae5d5e25e87582795ba56a3bf8 | |
parent | f7637f674bd5a57dde9804d5352a59db16b2ec3b (diff) |
The input connect method takes no parameters
-rw-r--r-- | input/device.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/input/device.c b/input/device.c index 0283918b..d0798318 100644 --- a/input/device.c +++ b/input/device.c @@ -912,14 +912,9 @@ static DBusMessage *device_connect(DBusConnection *conn, struct input_device *idev = data; struct input_conn *iconn; struct fake_input *fake; - const char *svc; int err; - if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &svc, - DBUS_TYPE_INVALID) == FALSE) - return NULL; - - iconn = find_connection(idev->connections, svc); + iconn = find_connection(idev->connections, "HID"); if (!iconn) return not_supported(msg); @@ -1012,7 +1007,7 @@ static void device_unregister(void *data) } static GDBusMethodTable device_methods[] = { - { "Connect", "s", "", device_connect, + { "Connect", "", "", device_connect, G_DBUS_METHOD_FLAG_ASYNC }, { "Disconnect", "", "", device_disconnect }, { "IsConnected", "", "b", device_is_connected }, |