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

Skip to content
Commit 02909efb authored by Sonny Sasaka's avatar Sonny Sasaka
Browse files

Convert some async to sync in btmanagerd

In preparation to use dbus_projection with btmanagerd, some interfaces
that interact with D-Bus needs to be sync instead of async due to the
nature of the floss API design where all methods should be sync (return
immediately) and async events are via callbacks instead:

* StateMachineProxy needs to be sync since this interfaces directly with
  D-Bus handlers.
* DbusCallbackUtil needs to be sync, but this is only transitional state
  because DbusCallbackUtil will be removed in the next patch when we
  integrate with dbus_projection.

All other internal code can stay using async interfaces.

This patch also fixes some compiler warnings.

Bug: 189501475
Tag: #floss
Test: Build floss on Linux

Change-Id: Id08792b2348944bd57b9ff7fbe97c43a2cb8ae8b
parent 974c72cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment