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 | d074104294bf19d9bda3ddd6ddb110d3563472a7 (patch) | |
tree | 6f9ec2b63bbbd454a9da90ee27ba20b4423031b0 /bluetooth-manager.c | |
parent | 8ee62398d467a4031a4307199687812f5105e500 (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 'bluetooth-manager.c')
-rw-r--r-- | bluetooth-manager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bluetooth-manager.c b/bluetooth-manager.c index 525d034..5ce90ce 100644 --- a/bluetooth-manager.c +++ b/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; } |