All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pauli Virtanen <noreply@github.com>
To: linux-bluetooth@vger.kernel.org
Subject: [bluez/bluez] 617e7f: profile: add after_services for ordering profile s...
Date: Tue, 02 Dec 2025 12:53:27 -0800	[thread overview]
Message-ID: <bluez/bluez/push/refs/heads/1029869/000000-d21535@github.com> (raw)

  Branch: refs/heads/1029869
  Home:   https://github.com/bluez/bluez
  Commit: 617e7f7db6be5cbdeae4a69e18761b770f33edeb
      https://github.com/bluez/bluez/commit/617e7f7db6be5cbdeae4a69e18761b770f33edeb
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M src/profile.c
    M src/profile.h

  Log Message:
  -----------
  profile: add after_services for ordering profile startup

Add btd_profile::after_servicess to specify the profile connect/accept
order for autoconnect.  This is a "soft" dependency so it doesn't fail
if the other services fail to start nor try to start them if they
otherwise wouldn't.

Add btd_profile_sort_list() for sorting a list according to profile
ordering, taking account priority and after_services.

Add btd_profile_find_remote_uuid() lookup utility, needed when using
btd_profile_sort_list() with uuid lists.


  Commit: dc2d782c008937a05f55f19992581fef27104b7b
      https://github.com/bluez/bluez/commit/dc2d782c008937a05f55f19992581fef27104b7b
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M .gitignore
    M Makefile.am
    A unit/btd.c
    A unit/test-profile.c

  Log Message:
  -----------
  test-profile: add tests for profile sorting

Add tests to check btd_profile_sort_list() works correctly.

The test uses queue instead of GSList in case device.c is converted to
use queue later.

Makefile.am: separate out bluetoothd_internal_sources (excludes plugins
& main.c) and add stub for symbols in main.c.  The profile.c pulls in
large parts of these so it's simpler to depend on them all for the test.
This doesn't cause any recompilation.


  Commit: ac5f5a333c27285228552637ca1883e839e27056
      https://github.com/bluez/bluez/commit/ac5f5a333c27285228552637ca1883e839e27056
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M src/device.c

  Log Message:
  -----------
  device: use after_services in service autoconnect and sort also GATT

Use btd_profile_sort_list() for selecting the order in which services
are connected: first by priority, then by after_services.

Probe and accept also GATT services in profile order. Previously this
was done in the order they were in GATT db.


  Commit: 868ef3b95480cc7d45324a26e166a8d00f603cfb
      https://github.com/bluez/bluez/commit/868ef3b95480cc7d45324a26e166a8d00f603cfb
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M src/service.c

  Log Message:
  -----------
  service: implement btd_profile::after_services callback

Handle btd_profile::after_services callback when after_services
dependencies have finished connecting.


  Commit: 0e55ecd81ed52bbd4ea8d8af2b5dc66226381237
      https://github.com/bluez/bluez/commit/0e55ecd81ed52bbd4ea8d8af2b5dc66226381237
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M profiles/audio/bap.c

  Log Message:
  -----------
  bap: have unicast client wait for VCS & TMAS & GMAP

Have unicast client to wait for VCS, TMAS, and GMAP before creating
endpoints and transports, so that their information is available at that
point.


  Commit: 693b73340e4a4c88b97ca2260bb65e4e64a7cdc2
      https://github.com/bluez/bluez/commit/693b73340e4a4c88b97ca2260bb65e4e64a7cdc2
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M src/shared/vcp.c
    M src/shared/vcp.h

  Log Message:
  -----------
  shared/vcp: add ready callback to bt_vcp_attach()

Add callback that is called when VCP client has finished attaching, so
that caller can know when it can be used.


  Commit: d215356302ee80defe30cbe8b712a1d635e2b665
      https://github.com/bluez/bluez/commit/d215356302ee80defe30cbe8b712a1d635e2b665
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M profiles/audio/vcp.c

  Log Message:
  -----------
  vcp: wait until client ready before marking profile connected

Mark vcp profile connected only when VCP client is ready, so that
dependent profiles do not try to use it when it is not yet initialized.


Compare: https://github.com/bluez/bluez/compare/617e7f7db6be%5E...d215356302ee

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

                 reply	other threads:[~2025-12-02 20:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bluez/bluez/push/refs/heads/1029869/000000-d21535@github.com \
    --to=noreply@github.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.