mirror of git://git.sysmocom.de/ofono
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:
parent
8a1cd911d8
commit
6672f41fd6
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue