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

Commit 85d48b78 authored by Jack He's avatar Jack He
Browse files

GD-Storage: Move constructor to protected

Bug: 162269750
Test: atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: I17488c3717511dcb3f2929cdbe39565944bc76f0
parent 4d973010
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -47,17 +47,6 @@ class StorageModule : public bluetooth::Module {

  static const std::string kAdapterSection;

  // Create the storage module where:
  // - config_file_path is the path to the config file on disk, a .bak file will be created with the original
  // - config_save_delay is the duration after which to dump config to disk after SaveDelayed() is called
  // - temp_devices_capacity is the number of temporary, typically unpaired devices to hold in a memory based LRU
  // - is_restricted_mode and is_single_user_mode are flags from upper layer
  StorageModule(
      std::string config_file_path,
      std::chrono::milliseconds config_save_delay,
      size_t temp_devices_capacity,
      bool is_restricted_mode,
      bool is_single_user_mode);
  ~StorageModule() override;
  static const ModuleFactory Factory;

@@ -134,6 +123,18 @@ class StorageModule : public bluetooth::Module {
  // immediately on the calling thread
  void SaveImmediately();

  // Create the storage module where:
  // - config_file_path is the path to the config file on disk, a .bak file will be created with the original
  // - config_save_delay is the duration after which to dump config to disk after SaveDelayed() is called
  // - temp_devices_capacity is the number of temporary, typically unpaired devices to hold in a memory based LRU
  // - is_restricted_mode and is_single_user_mode are flags from upper layer
  StorageModule(
      std::string config_file_path,
      std::chrono::milliseconds config_save_delay,
      size_t temp_devices_capacity,
      bool is_restricted_mode,
      bool is_single_user_mode);

 private:
  struct impl;
  mutable std::recursive_mutex mutex_;