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

Commit 019e1f59 authored by Zach Johnson's avatar Zach Johnson
Browse files

Make hci_layer module lifecycle functions protected, to match module.h

Test: fuzz/run --host bluetooth_gd_hci_layer_fuzz_test
Change-Id: I5a96ccbf98952c5f86219cde1b5100338b7eac06
parent 3d53b13f
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -82,14 +82,6 @@ class HciLayer : public Module, public CommandInterface<CommandPacketBuilder> {
  virtual LeScanningInterface* GetLeScanningInterface(common::Callback<void(LeMetaEventView)> event_handler,
                                                      os::Handler* handler);

  static const ModuleFactory Factory;

  void ListDependencies(ModuleList* list) override;

  void Start() override;

  void Stop() override;

  os::Handler* GetHciHandler() {
    return GetHandler();
  }
@@ -100,6 +92,15 @@ class HciLayer : public Module, public CommandInterface<CommandPacketBuilder> {

  static constexpr std::chrono::milliseconds kHciTimeoutMs = std::chrono::milliseconds(2000);

  static const ModuleFactory Factory;

 protected:
  void ListDependencies(ModuleList* list) override;

  void Start() override;

  void Stop() override;

 private:
  struct impl;
  std::unique_ptr<impl> impl_;