bluez/bluez-4.4-input.patch
David Woodhouse 1e336b23d9 First import
2008-09-11 02:10:24 +00:00

36 lines
1.1 KiB
Diff

commit af3684270a0fe4a753e5199dfa58acd7f9b2038c
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Wed Sep 10 00:19:00 2008 +0200
The input connect method takes no parameters
diff --git a/input/device.c b/input/device.c
index 0283918..d079831 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 },