diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-03 14:32:35 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-03 14:32:35 +0000 | 
| commit | ae3056e5de6930afe407a48ca2067e8b5aafe9a5 (patch) | |
| tree | 88e2f2a06fb5eda8e965cb0ce6434c66c1ca2129 | |
| parent | a1628010a26bf5969abb51e9449b4cd14c84f853 (diff) | |
Fix parameter list for CreatePairedDevice
| -rw-r--r-- | hcid/adapter.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/hcid/adapter.c b/hcid/adapter.c index fdd148eb..1e23b10b 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3936,11 +3936,11 @@ static DBusMessage *create_device(DBusConnection *conn,  static DBusMessage *create_paired_device(DBusConnection *conn,  					DBusMessage *msg, void *data)  { -	const gchar *address, *agent_path; +	const gchar *address, *agent_path, *capability;  	if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &address, -						DBUS_TYPE_OBJECT_PATH, -						&agent_path, +					DBUS_TYPE_OBJECT_PATH, &agent_path, +					DBUS_TYPE_STRING, &capability,  						DBUS_TYPE_INVALID) == FALSE)  		return invalid_args(msg); @@ -4234,7 +4234,7 @@ static GDBusMethodTable adapter_methods[] = {  	{ "ListDevices",	"",	"ao",	list_devices		},  	{ "CreateDevice",	"s",	"o",	create_device,  						G_DBUS_METHOD_FLAG_ASYNC}, -	{ "CreatePairedDevice",	"so",	"o",	create_paired_device, +	{ "CreatePairedDevice",	"sos",	"o",	create_paired_device,  						G_DBUS_METHOD_FLAG_ASYNC},  	{ "RemoveDevice",	"o",	"",	remove_device		},  	{ "FindDevice",		"s",	"o",	find_device		}, | 
