Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d53b13f authored by Zach Johnson's avatar Zach Johnson
Browse files

Move trivial functions from hci_layer.cc to hci_layer.h

Test: fuzz/run --host bluetooth_gd_hci_layer_fuzz_test
Change-Id: Ie1cb79abe70014bc9b6c24a67023bbf389caf3e7
parent ce03e664
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -483,10 +483,6 @@ void HciLayer::ListDependencies(ModuleList* list) {
  list->add<hal::HciHal>();
}

os::Handler* HciLayer::GetHciHandler() {
  return GetHandler();
}

void HciLayer::Start() {
  impl_->Start(GetDependency<hal::HciHal>());
}
@@ -495,8 +491,5 @@ void HciLayer::Stop() {
  impl_->Stop();
}

std::string HciLayer::ToString() const {
  return "Hci Layer";
}
}  // namespace hci
}  // namespace bluetooth
+7 −2
Original line number Diff line number Diff line
@@ -90,9 +90,14 @@ class HciLayer : public Module, public CommandInterface<CommandPacketBuilder> {

  void Stop() override;

  os::Handler* GetHciHandler();
  os::Handler* GetHciHandler() {
    return GetHandler();
  }

  std::string ToString() const override {
    return "Hci Layer";
  }

  std::string ToString() const override;
  static constexpr std::chrono::milliseconds kHciTimeoutMs = std::chrono::milliseconds(2000);

 private: