mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Roll forward to cl/338482889
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I9850950db8bd84f0904ea1a413151887f52098cf
This commit is contained in:
@@ -4,44 +4,21 @@ namespace location {
|
||||
namespace nearby {
|
||||
namespace connections {
|
||||
|
||||
template <typename Platform>
|
||||
Mediums<Platform>::Mediums()
|
||||
: bluetooth_radio_(new BluetoothRadio<Platform>()),
|
||||
bluetooth_classic_(
|
||||
new BluetoothClassic<Platform>(bluetooth_radio_.get())),
|
||||
ble_(new BLE<Platform>(bluetooth_radio_.get())),
|
||||
ble_v2_(new mediums::BLEV2<Platform>(bluetooth_radio_.get())),
|
||||
wifi_lan_(new mediums::WifiLan<Platform>()) {}
|
||||
|
||||
template <typename Platform>
|
||||
Mediums<Platform>::~Mediums() {
|
||||
// Nothing to do.
|
||||
BluetoothRadio& Mediums::GetBluetoothRadio() {
|
||||
return bluetooth_radio_;
|
||||
}
|
||||
|
||||
template <typename Platform>
|
||||
Ptr<BluetoothRadio<Platform> > Mediums<Platform>::bluetoothRadio() const {
|
||||
return bluetooth_radio_.get();
|
||||
BluetoothClassic& Mediums::GetBluetoothClassic() {
|
||||
return bluetooth_classic_;
|
||||
}
|
||||
|
||||
template <typename Platform>
|
||||
Ptr<BluetoothClassic<Platform> > Mediums<Platform>::bluetoothClassic() const {
|
||||
return bluetooth_classic_.get();
|
||||
Ble& Mediums::GetBle() { return ble_; }
|
||||
|
||||
WifiLan& Mediums::GetWifiLan() {
|
||||
return wifi_lan_;
|
||||
}
|
||||
|
||||
template <typename Platform>
|
||||
Ptr<BLE<Platform> > Mediums<Platform>::ble() const {
|
||||
return ble_.get();
|
||||
}
|
||||
|
||||
template <typename Platform>
|
||||
Ptr<mediums::BLEV2<Platform> > Mediums<Platform>::bleV2() const {
|
||||
return ble_v2_.get();
|
||||
}
|
||||
|
||||
template <typename Platform>
|
||||
Ptr<mediums::WifiLan<Platform> > Mediums<Platform>::wifi_lan() const {
|
||||
return wifi_lan_.get();
|
||||
}
|
||||
mediums::WebRtc& Mediums::GetWebRtc() { return webrtc_; }
|
||||
|
||||
} // namespace connections
|
||||
} // namespace nearby
|
||||
|
||||
Reference in New Issue
Block a user