From 6672f41fd6293ff33eccd1993840f5e061193673 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 20 Feb 2013 19:26:19 -0300 Subject: bluez5: Add profile version argument This patch adds sending of the Version argument to RegisterProfile method. The version is required to create the service record containing the correct profile version. --- plugins/bluez5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/bluez5.c') diff --git a/plugins/bluez5.c b/plugins/bluez5.c index f2cd4bb1..9233a2b2 100644 --- a/plugins/bluez5.c +++ b/plugins/bluez5.c @@ -108,7 +108,8 @@ done: } int bt_register_profile(DBusConnection *conn, const char *uuid, - const char *name, const char *object) + uint16_t version, const char *name, + const char *object) { DBusMessageIter iter, dict; DBusPendingCall *c; @@ -125,6 +126,7 @@ int bt_register_profile(DBusConnection *conn, const char *uuid, dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &dict); ofono_dbus_dict_append(&dict, "Name", DBUS_TYPE_STRING, &name); + ofono_dbus_dict_append(&dict, "Version", DBUS_TYPE_UINT16, &version); dbus_message_iter_close_container(&iter, &dict); -- cgit v1.2.3