diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-06-06 20:01:16 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-06-07 13:41:18 -0700 |
commit | cd1eab1f790e3b7cda86dd28ae658d7bbe5a7894 (patch) | |
tree | df849f7393ccaf34ec479a177cf74350288ed72c /binding-bluetooth/bluetooth-manager.c | |
parent | 950280341c4bf12b1f85ab730a061f7a9c893a92 (diff) |
binding: bluetooth: available BT UUID profiles reporting
Since selection connect/disconnect can be done to a certain
BT UUID profiles the available ones need to be listed to
subscribers.
Change-Id: I4497838ef2f9dd5e6fc40f1364a8b5f165a1831d
Bug-AGL: SPEC-638
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding-bluetooth/bluetooth-manager.c')
-rw-r--r-- | binding-bluetooth/bluetooth-manager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binding-bluetooth/bluetooth-manager.c b/binding-bluetooth/bluetooth-manager.c index 525d034..5ce90ce 100644 --- a/binding-bluetooth/bluetooth-manager.c +++ b/binding-bluetooth/bluetooth-manager.c @@ -127,6 +127,7 @@ struct btd_device *device_copy(struct btd_device* device) temp->connected = device->connected; temp->avconnected = device->avconnected; temp->hfpconnected = device->hfpconnected; + temp->uuids = g_list_copy_deep(device->uuids, g_strdup, NULL); return temp; } @@ -181,6 +182,12 @@ void device_free(struct btd_device* device) device->transport_state = NULL; } + if (device->uuids) { + D_PRINTF("uuids: xxx\n"); + g_list_free_full(device->uuids, g_free); + device->uuids = NULL; + } + g_free(device); } @@ -587,6 +594,7 @@ struct btd_device *device_copy_from_bluez(struct bt_device* device) temp->trusted = device->trusted; temp->connected = device->connected; temp->avconnected = device->avconnected; + temp->uuids = g_list_copy_deep(device->uuids, g_strdup, NULL); return temp; } |