[bt][l2cap] Remove dispatcher argument from data::Domain::AddACLConnection

Since the GAP and L2CAP layers run on the same thread and use the same
dispatcher, it is no longer necessary to pass a dispatcher argument to
data::Domain methods because callbacks can safely be called or posted
using the dispatcher already passed to L2CAP on initialization.

Remove dispatcher argument from data::Domain::AddACLConnection and
ChannelManager::RegisterACL.

Remove dispatcher argument from LogicalLink::set_error_callback and
LogicalLink::set_security_upgrade_callback and call those callbacks
synchronously.

Bug: 50565
Test: pure refactor, run bt-host-unittests
Change-Id: I34be72adc0878afceee4b3623d0e81fe5d3e15e8
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/383853
Commit-Queue: Ben Lawson <benlawson@google.com>
Reviewed-by: Nick Pollard <nickpollard@google.com>
Testability-Review: Nick Pollard <nickpollard@google.com>
12 files changed
tree: 977bda097775be2a4e22bf5b5382eeed2dc28371
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .dir-locals.el
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.