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

Skip to content
Commit 5df9b191 authored by Sonny Sasaka's avatar Sonny Sasaka
Browse files

Floss: Improve D-Bus projection for client

This extends the client D-Bus projection generation to also generate the
more RPC-friendly struct:
* Methods are async allowing clients to yield instead of block. Although
  all Floss methods are sync at the server side, at RPC-level it still
  has benefit to yield rather than block for the return.
* Methods have returns wrapped in Result<T, dbus::Error> allowing
  clients to handle D-Bus-level errors.

Included in this patch are a few examples on how the RPC-friendly
version can be used by btclient, but these examples do not actually
fully handle the error yet. Future patches will be able to utilize this
RPC-friendly interface to fully handle D-Bus errors.

Bug: 200732080
Tag: #floss
Test: Manual - Ran btclient without btmanagerd

Change-Id: Ia373fa88354613b3a2ce04b4711b453c099ac14e
parent 11e16a0b
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