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

Commit 5c03584d authored by Chris Manton's avatar Chris Manton
Browse files

Connect main::shim::acl to legacy dumpsys operation

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I5288fe8eb2f4d9308c896d5c62e99efad35a3e51
parent a8194f46
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -523,9 +523,12 @@ bluetooth::shim::legacy::Acl::Acl(os::Handler* handler,
  GetAclManager()->RegisterLeCallbacks(this, handler_);
  GetController()->RegisterCompletedMonitorAclPacketsCallback(
      handler->BindOn(this, &Acl::on_incoming_acl_credits));
  bluetooth::shim::RegisterDumpsysFunction(static_cast<void*>(this),
                                           [this](int fd) { Dump(fd); });
}

bluetooth::shim::legacy::Acl::~Acl() {
  bluetooth::shim::UnregisterDumpsysFunction(static_cast<void*>(this));
  GetController()->UnregisterCompletedMonitorAclPacketsCallback();
}