linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/1] A client needs to query whether the Bluetooth adapter support WBS, so we
@ 2020-08-17 21:21 Yu Liu
  2020-08-17 21:21 ` [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities Yu Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Yu Liu @ 2020-08-17 21:21 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: chromeos-bluetooth-upstreaming, Yu Liu

designed this new D-Bus API to provide a generic way to query the
adapter's capabilities. Initially this will only cover WBS capability,
but can be easily extended to support other capabilities.

Changes in v2:
- Return an array of strings instead of a dict

Changes in v1:
- Initial change

Archie Pusaka (1):
  adapter - D-Bus API for querying the adapter's capabilities

 doc/adapter-api.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

-- 
2.28.0.220.ged08abb693-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
  2020-08-17 21:21 [RFC PATCH v2 0/1] A client needs to query whether the Bluetooth adapter support WBS, so we Yu Liu
@ 2020-08-17 21:21 ` Yu Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Yu Liu @ 2020-08-17 21:21 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: chromeos-bluetooth-upstreaming, Archie Pusaka, sonnysasaka, Yu Liu

From: Archie Pusaka <apusaka@chromium.org>

Initially this is introduced to query whether WBS is supported by the adapter,
the API is generic enough to be extended to support querying others in
the future.

Reviewed-by: sonnysasaka@chromium.org

Signed-off-by: Yu Liu <yudiliu@google.com>
---

Changes in v2:
- Return an array of strings instead of a dict

Changes in v1:
- Initial change

 doc/adapter-api.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index 1a7255750..250d0e9b3 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -204,6 +204,23 @@ Methods		void StartDiscovery()
 					 org.bluez.Error.NotReady
 					 org.bluez.Error.Failed
 
+		dict GetSupportedCapabilities()
+
+			This method returns a dictionary of supported
+			capabilities that is populated when the adapter
+			initiated.
+
+			The dictionary is following the format
+			{capability : value}, where:
+
+			string capability:	The supported capability under
+						discussion.
+			variant value:		A more detailed description of
+						the capability.
+
+			Possible errors: org.bluez.Error.NotReady
+					 org.bluez.Error.Failed
+
 Properties	string Address [readonly]
 
 			The Bluetooth device address.
-- 
2.28.0.220.ged08abb693-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [RFC PATCH v2 0/1] A client needs to query whether the Bluetooth adapter support WBS, so we
@ 2020-08-17 21:25 Yu Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Yu Liu @ 2020-08-17 21:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: chromeos-bluetooth-upstreaming, Yu Liu

designed this new D-Bus API to provide a generic way to query the
adapter's capabilities. Initially this will only cover WBS capability,
but can be easily extended to support other capabilities.

Changes in v2:
- Return an array of strings instead of a dict

Changes in v1:
- Initial change

Archie Pusaka (1):
  adapter - D-Bus API for querying the adapter's capabilities

 doc/adapter-api.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)

-- 
2.28.0.220.ged08abb693-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-17 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 21:21 [RFC PATCH v2 0/1] A client needs to query whether the Bluetooth adapter support WBS, so we Yu Liu
2020-08-17 21:21 ` [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities Yu Liu
2020-08-17 21:25 [RFC PATCH v2 0/1] A client needs to query whether the Bluetooth adapter support WBS, so we Yu Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).