1 // Copyright 2023 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 #pragma once 16 #include "pw_bluetooth_sapphire/internal/host/hci/connection.h" 17 18 namespace bt::hci { 19 class ScoConnection : public Connection, public WeakSelf<ScoConnection> { 20 public: 21 ScoConnection(hci_spec::ConnectionHandle handle, 22 const DeviceAddress& local_address, 23 const DeviceAddress& peer_address, 24 const hci::Transport::WeakPtr& hci); 25 26 private: 27 // This method must be static since it may be invoked after the connection 28 // associated with it is destroyed. 29 static void OnDisconnectionComplete(hci_spec::ConnectionHandle handle, 30 const hci::Transport::WeakPtr& hci); 31 }; 32 33 } // namespace bt::hci 34