[PATCH BlueZ 0/2] Change ConnectDevice to optionally connect services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set makes it possible to use the experimental Adapter1
ConnectDevice DBUS API to connect to a device without also
connecting each of the devices service. This enables out-of-band
discovery of an address with the conditional behavior of calling
ConnectProfile on a discovered device.

I chose to change the default behavior of the ConnectDevice API.
It will only connect all services if you set a new ConnectAllDevices
boolean value in the dictionary argument.

I feel that that makes a better default, and with this still being
an experimental API, I'll ask to see how others feel.

This would require changes to users of the original commit:

commit c3f7b6733c5f ("adapter: Add ConnectDevice method")

I would be fine with changing the API in some other way that makes this
use case possible - this is just my preference.

You may have seen questions about this a little bit ago - this is the
follow-up:

https://marc.info/?l=linux-bluetooth&m=153317507925739&w=2
https://marc.info/?l=linux-bluetooth&m=153315011619515&w=2

George Josh Karabin (2):
  Change the experimental Adapter1 ConnectDevice api to default to not
    connecting all profiles, using an optional parameter to restore the
    current behavior.
  Update the Adapter1 API to match the change to ConnectDevice.

 doc/adapter-api.txt | 15 ++++++++++-----
 src/adapter.c       | 18 +++++++++++++++---
 2 files changed, 25 insertions(+), 8 deletions(-)

-- 
2.17.1





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux