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.
This commit is contained in:
Claudio Takahasi 2013-02-20 19:26:19 -03:00 committed by Denis Kenzior
parent 8a1cd911d8
commit 6672f41fd6
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -70,7 +70,8 @@ int bt_ba2str(const bdaddr_t *ba, char *str);
int bt_bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2);
int bt_register_profile(DBusConnection *conn, const char *uuid,
const char *name, const char *object);
uint16_t version, const char *name,
const char *object);
void bt_unregister_profile(DBusConnection *conn, const char *object);