Skip to content

pbap: use the public DBus connection

Andrew Sayers linux-bluetooth 2 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v13 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3obexd: Pass at_(un)register value to logind callbacksobexd/client/pbap.c obexd/plugins/bluetooth.c obexd/src/logind.c +1 more+19 -151 reply
2/3pbap: use the public DBus connectionobexd/client/pbap.c+21 -30 replies
3/3Revert "obexd: Support creating private system/session bus connections"obexd/src/main.c obexd/src/obexd.h+0 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 0/3] pbap: use the public DBus connection

DBus requests are received by the public DBus connection, because it registers the relevant bus name. My previous patches told PBAP to listen on a private connection, but DBus doesn't let connections share bus names, so it needs to listen on the public connection instead.

This adds a little more complexity to the logind callbacks, to avoid unregistering profiles during shutdown. It also removes an API I previously added, which is no longer used and would only encourage the next person to make the same mistake.

While reviewing this change, it became obvious seat-detection should be merged into the normal driver interface instead. That change is likely to add time and could create its own bugs, so this series fixes the simple bug while we discuss the deeper issue.

--

Frédéric and Pauli - please let me know if you'd like to be CCed on the architecture discussion. Otherwise, I'll assume you're not interested in that part of the problem.

V1 -> V2 Move instances of "(void)foo" below "int bar"
(fixes a "mixed declarations and code" error)

Andrew Sayers (3):
obexd: Pass at_(un)register value to logind callbacks
pbap: use the public DBus connection
Revert "obexd: Support creating private system/session bus connections"

 obexd/client/pbap.c       | 28 ++++++++++++++++++++++++----
 obexd/plugins/bluetooth.c |  6 ++++--
 obexd/src/logind.c        | 14 +++++++-------
 obexd/src/logind.h        |  8 ++++----
 obexd/src/main.c          |  8 --------
 obexd/src/obexd.h         |  2 --
 6 files changed, 39 insertions(+), 27 deletions(-)