Add support for sharing DiscoveryCallbacks across BluetoothDevices.

This commit is contained in:
Vibhav Pant
2023-09-05 20:00:25 +05:30
parent 4bf11c8db0
commit d960bfc9e1
7 changed files with 20 additions and 7 deletions
@@ -49,7 +49,7 @@ void BluetoothDevices::remove_device_by_path(
devices_by_path_.erase(device_object_path);
}
std::shared_ptr<BluetoothDevice> BluetoothDevices::add_new_device(
std::shared_ptr<MonitoredBluetoothDevice> BluetoothDevices::add_new_device(
sdbus::ObjectPath device_object_path) {
absl::MutexLock l(&devices_by_path_lock_);
auto pair = devices_by_path_.emplace(