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

Commit d9707395 authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

Merge "HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser"

am: 1ef04b42

Change-Id: I7070e53f685e48508c5cc3720b18abafb59cecd0
parents 084538f0 1ef04b42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ AdvertiserId LeAdvertisingManager::CreateAdvertiser(
  return id;
}

AdvertiserId LeAdvertisingManager::CreateAdvertiser(
AdvertiserId LeAdvertisingManager::ExtendedCreateAdvertiser(
    const ExtendedAdvertisingConfig& config, const common::Callback<void(Address, AddressType)>& scan_callback,
    const common::Callback<void(ErrorCode, uint8_t, uint8_t)>& set_terminated_callback, os::Handler* handler) {
  if (config.directed) {
+3 −4
Original line number Diff line number Diff line
@@ -69,10 +69,9 @@ class LeAdvertisingManager : public bluetooth::Module {
                                const common::Callback<void(Address, AddressType)>& scan_callback,
                                const common::Callback<void(ErrorCode, uint8_t, uint8_t)>& set_terminated_callback,
                                os::Handler* handler);
  AdvertiserId CreateAdvertiser(const ExtendedAdvertisingConfig& config,
                                const common::Callback<void(Address, AddressType)>& scan_callback,
                                const common::Callback<void(ErrorCode, uint8_t, uint8_t)>& set_terminated_callback,
                                os::Handler* handler);
  AdvertiserId ExtendedCreateAdvertiser(
      const ExtendedAdvertisingConfig& config, const common::Callback<void(Address, AddressType)>& scan_callback,
      const common::Callback<void(ErrorCode, uint8_t, uint8_t)>& set_terminated_callback, os::Handler* handler);

  void RemoveAdvertiser(AdvertiserId id);