Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2668967pxa; Mon, 17 Aug 2020 16:05:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCQv5BmkvurlAfwkyokiY4mkqI3B9uNoc0/bUE+x2m71E33YeFCc+KYdbDToyXmuqxPuMl X-Received: by 2002:a05:6402:74a:: with SMTP id p10mr17428775edy.348.1597705538367; Mon, 17 Aug 2020 16:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597705538; cv=none; d=google.com; s=arc-20160816; b=dCmEP0T5IE+qxZ3HTR7+n5fzuPa7P8tMsv1LHKcoc8hShzJ8eHpoTTYFGI0wPtco5/ rnNIIpdoqcWZCUVNcM+G6OsjtjcAenNxjS9nkxWyedNrdfJ9ICUfbrUXIfDPkbRvN4Qz yubkTwJaMSEllkh8QFnLPsPt0p+7w+tJgm7B6Rx5l2rBEWX7N53KLDudzeX8WU148odY xnLxMEYn2f8fuUTcd/bMQjyE7nkHSM45NKY7GTSl3qVlwdiUy5UO4ykI7A8jcHsXQ5FZ hy/WaE+0cgITD642qiboAJV+IspwROAs68Lo/527K/4pDH1djwUw6hlAxxMaACma/KIv /E+g== 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=UuJE2iFxGr+pK6Ja4BJ1thQ9MqtdEznWrskfkznhejE=; b=fuqwwpgBSv2U9sqn2IguIzRScKoknrpiqLaPaHOlz5cyY1VGY/Er+hpQAZR26yaTZi TgGXjDGVkymaLq8REWj/VSY6F4+3oXvwQStsK5bvSvAlgSpajjiVWbThyp7Rd6/AzM1S Q+WKKcun8sgcnibvbpMf8HIK072bnFv+wVZ1L2XQbupSE5FD7gx984CjtZa50GRaIfbP qnl4SyeXRjtaEToRZBDoCA5gh4fKAbF+ZTmSK4pSlwWqUr611tz3RfHCNDJk2PZUD48H NXJQT/jNvNQu6HAoqCgk/PKFKHAASur+kxxmJWKTqEFAlCx/0AQAu6ozJr0yHOPAOkYU ykRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PNDNHba4; 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 bu19si11988734ejb.305.2020.08.17.16.05.14; Mon, 17 Aug 2020 16:05: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=PNDNHba4; 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 S1728310AbgHQV0D (ORCPT + 99 others); Mon, 17 Aug 2020 17:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbgHQV0C (ORCPT ); Mon, 17 Aug 2020 17:26:02 -0400 Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49A71C061389 for ; Mon, 17 Aug 2020 14:26:02 -0700 (PDT) Received: by mail-qt1-x849.google.com with SMTP id q7so12998674qtd.1 for ; Mon, 17 Aug 2020 14:26:02 -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=UuJE2iFxGr+pK6Ja4BJ1thQ9MqtdEznWrskfkznhejE=; b=PNDNHba492pImbDK8n3vNAOHennFHh43XZDD22jWKsr0o4q9nfOD1qXBmfmziGbI/l +SuAE98GFR4CL6aoVLp/rCv3zDY94i36+wO8D8c8wOquq4lOydG6esVry6mMtwJy6DJq uJgEzcVeKfScoSpTqRByYxAR6/37QI0v/90L4OtP7MtwjSChpqAB/gplsmZQkjMMM7qf osG2hSGI5i1Pgz+3bEmNUQBTumj8Nl7wx0tx8hCaPVmLSP7hLzw6SG9RlMVe7BAdwgzV L/Xn/SoH+5UIiaPvDClLAuMkDW8fvW5sQtAjsSUDMA31INh2wfwwGRfWJFRmxYzZ4dxU RPKQ== 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=UuJE2iFxGr+pK6Ja4BJ1thQ9MqtdEznWrskfkznhejE=; b=gl1fdyUJVJ6/9nNFeXsaXAUshxG0PMCC9ecrw0Dw03mBLujrcaK2FQJeAsbF2lWHvh 6mG8xYsA93+fdnRTxNr/CvccfoKvQveF3X+fxVXPP/ttV2iLdetAONQEVu+78JlajgcU 2hJbXQfCEuDOPfZcRRNDU5Lcfva+j0n6JHYE1JhKCCMKF0zfI1e4NYxffRyxk6uQ3Giu MJ47f0u76Lvd5wktmLLRSMRzUsqiA4gbxYbpf+/AIYGtbz0Mq6zxhga9NKb9UjnxZb9A I6fmZqvLVfw0dkZ7lKRcbv433lr+4lUdbbH2v3VQtsTESyewCuVLQPoxOWR8LWRXvyux B/8w== X-Gm-Message-State: AOAM531XukcobqlwGMXCPBLFmqGUOFUYM/Pp0xqkVBJDjmyWKSPRwX2v w8ceqH+FpW5U3zwlmCcO0Fn3XK56gvehgSP2r1YXp/alaeYAO72jhGja+PPHHk+nOSs4u4CcuwA 1+2tpB46oEmTdSTJAwLqbzn+n+vwB9Fq13GMswFAsQHnnuXJJ6I0+7/IvrzCuEXRYRso0oCTese wB X-Received: by 2002:a05:6214:3e8:: with SMTP id cf8mr16285641qvb.74.1597699560661; Mon, 17 Aug 2020 14:26:00 -0700 (PDT) Date: Mon, 17 Aug 2020 14:25:54 -0700 In-Reply-To: <20200817212554.3844965-1-yudiliu@google.com> Message-Id: <20200817142545.RFC.v2.1.Ibaa1dfd49179a141c19a651f3c2132a28b71b344@changeid> Mime-Version: 1.0 References: <20200817212554.3844965-1-yudiliu@google.com> X-Mailer: git-send-email 2.28.0.220.ged08abb693-goog Subject: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities From: Yu Liu To: linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Archie Pusaka , sonnysasaka@chromium.org, Yu Liu 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 Signed-off-by: Yu Liu --- Changes in v2: - Return an array of strings instead of a dict Changes in v1: - Initial change doc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt index 1a7255750..8fbcadb54 100644 --- a/doc/adapter-api.txt +++ b/doc/adapter-api.txt @@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReady org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speech + + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. -- 2.28.0.220.ged08abb693-goog