Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2452584pxa; Mon, 3 Aug 2020 16:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeLUuhVB4FQ75l7Joyz4vng2K6PNKGaKcey7KP15ITPy2vAo8SW2Lwk/NS+Bpw6klGZdxX X-Received: by 2002:a05:6402:12c4:: with SMTP id k4mr17785558edx.358.1596499178794; Mon, 03 Aug 2020 16:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596499178; cv=none; d=google.com; s=arc-20160816; b=aJY9n2Jo7wnTU0tPdCHlNfQcopsFLFPnhsLi4pj6Sh8iJXryuee6AYJBvLnHH5Gf24 QY2LoQL3MFYBMFd5RdqxOsh2LDfE0xn79Z5fNjxGFWBjG4QCTK/ogMgfZ+pSGzxTlfU9 pIZVz+vvb1uBbPj5+5QPoMsJ7XCpFWUQu+eG1UeQw0zF39iQsclrvRTu14GNYvUeLLUX cZbbj/x5xYhCuqAn5gAt7TClQGBd+/wYgDJCCY4tiPQnx2LW2qJDcFDwRn4VLREpwvPi AfE9oE+AEsCea9+IoKRB7GtPY0hfCG59Ir+QciE11gkiVCWnV34Pz+Wfn1JmxRIi0Tii sYEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=we5XgM9D/FaMqpDjAxLlNgitGEtix5X3KZAI9OVXI+Q=; b=e5yIyu1b6Zgv9sUZ/cuE2TL9CRMTc+K2W3RDuIiIN32qdAOw8j1YXa9PapzHLLbJNc +wwHtnA9EV2ttLC/FuFMonAOVv+Cn4CKN4whxC/2w6IqQHlSWUR8Oflmlwa5tjL8NSLc GhNdal4rtAdC1J4etUbYHymSIuDrDHsW15W4ebaKzKqxC2ePF5Iz/9ER6MnjdHMIVBlQ A2Tgc3K5FBk3i40MKEjDIlDdrvNV7nAxOApQz3FYaQEEpfOJnX4BX7O0DoJb1TFLvtNQ BBq5n1/fqiWsjwBhFZElLTGx+qf8j5PElg7K6Thli8SNKAqyitI03je8hpNRT0+47ZaL qWUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pY8qCSOz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si11140428eju.316.2020.08.03.16.58.35; Mon, 03 Aug 2020 16:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pY8qCSOz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729188AbgHCX6Y (ORCPT + 99 others); Mon, 3 Aug 2020 19:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729139AbgHCX6W (ORCPT ); Mon, 3 Aug 2020 19:58:22 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDB7C0617A0 for ; Mon, 3 Aug 2020 16:58:22 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id r1so7230805ybg.4 for ; Mon, 03 Aug 2020 16:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=we5XgM9D/FaMqpDjAxLlNgitGEtix5X3KZAI9OVXI+Q=; b=pY8qCSOzC6iiErMuP9CTXE3NltWwjZ7lSbcKrVBfAMy9qTdAEwdoc6K2J9PKi+uUfT lZLns8PNAfzUZ4wKDpGbTLwvULJXY8VeBzbJtuQKJmWC3mwm0lMq5gRPR0Mc2BokqL5X AenKXWKyUmT/WVayuYU/fbJXI0zU4Yg7OuUZ1LASAKe1NU9XW78T1OWNKeAR0ZS2Ricf ULSs5WtG1BsDaLX782jH+Oy14OhOvsbrWjz2UTtUmCV5SMS0AnofgeWzKbr4Lf4Acb62 5Qam0PnLzuejFH4F6HMOTCoj+I0e6ehTlp7aaVCOAbVX81oZETPHlvnb7D/46c3i6dK9 Ew4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=we5XgM9D/FaMqpDjAxLlNgitGEtix5X3KZAI9OVXI+Q=; b=HLUeck/bicbDO6+45cWmOBxazId05rfPIl32qaQqt16SUYpM5lYM8kDiwj6AqG7RXw nKqveP290Q2GM7FLK5QUD0K5LHSRmaI0AanrUKpDBlQuqWPJTNo+KSdEwkQDhIw5H/rP 7Mut57tnROCQtdS3y48GcxV7nMDlegpWI6BVjKzGJXgYrD0nBm6wZHrZAUMO/cC/NOSo Bt06pzyfog7MbsjdWFH+PA86FaeBY2refkuaq8HsdJqevhduFjNeTpNTO6n9QJOSc6jf lcttYwjfsAIVBJAjerht/eFsPm2lHkE0jNkKHksa8BEqzesF/J+6ClyQfLoRkT9qQRtU b+tg== X-Gm-Message-State: AOAM5309e0mnFSaqUIn35AY/rWX9kBaLTv9af9kFnb731jEuZFETrX2r VuArjA3lv28j3+wpPSAfOKObTxhuG/vLQ/Lm+It9GpfZ1R9eYP9csrx6VCkuizTjYD+ZQ2PWUaN aTDIf/cdHViAgxiDzpPN7N4u9kbWd/JK1Hu8f0UmjWSbpvgaY7+idASDD1tvKuOeqYRnMYctA65 2Q X-Received: by 2002:a25:38c5:: with SMTP id f188mr28455307yba.132.1596499101772; Mon, 03 Aug 2020 16:58:21 -0700 (PDT) Date: Mon, 3 Aug 2020 16:58:11 -0700 In-Reply-To: <20200803235811.2441774-1-yudiliu@google.com> Message-Id: <20200803165804.RFC.v1.1.Ibaa1dfd49179a141c19a651f3c2132a28b71b344@changeid> Mime-Version: 1.0 References: <20200803235811.2441774-1-yudiliu@google.com> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog Subject: [RFC PATCH v1 1/1] adapter - D-Bus API for querying the adapter's capability From: Yu Liu To: linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Archie Pusaka , sonnysasaka@chromium.org Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Archie Pusaka 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 --- 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.163.g6104cc2f0b6-goog