Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2668832pxa; Mon, 17 Aug 2020 16:05:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWHVq/uuoMc0NWTgEJ/hX4fCSxT57aIC5Y6zWXkhRg7dVmoinXaCR9jLJT+U60Hw+382qE X-Received: by 2002:a17:906:ce3a:: with SMTP id sd26mr17054525ejb.489.1597705525961; Mon, 17 Aug 2020 16:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597705525; cv=none; d=google.com; s=arc-20160816; b=Q9HEA4cJ5muIWxSjKZwuz+nVZNyLAZdSbLw2r2HXXnPhR5eMInH7Y7/xjmOMOd1fDj f0DLzwn0xjinlZm/SLsYhuH50llqmJ1d95agPJ1XOl9+M376tpu0Z6rjaGe8P/3wlJbG B8hXb9ZLJNyj7YqExLuaxB9UbfcYaykzpDSRHF5Nq69sKKWQKHthu/GTwRhQwgzGrwWE 1S7amwU419k7vX7btV+ZqKj6URgN2AV3gDOOGCblUfCejwrFHtW1AiyOc2baNvZIQXxD JdraoPN2OX8bAWCv+PAl30pys38s6bYXmTrYp+v+OKlPIDCXK5RZKvDgragReXuhdDYW i6QQ== 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=HAjGBhrOHTQnEFg1YCoKCKzFr3JrN5+1ofDPMY2xqK4=; b=aiR2+GQsMoLsV7oqSMCGUDGqfpTqg9z6lyLyWTli03YTIJ+KPiZd+TMRgwsGmmktau GVBiMLvECE3PQETguiblOStFWiV04RpR9amx/JrL8nMNl1mqz3Dm/wL7ZhpFwhtCkhoJ gp035iw+lxfAaqpIELpJ1jLX+YTxS/MU1+4HsViXBjX/uv92Pq+8zw/Ra7O7C/gJ44jl OOJO4Jhh2Elt8VyS1xazyXNA+WanXhd5/815k9TUnel5nRhWTLqjMuVth40AUY28EIu+ 9tbGXirDkb4AM26GHzRmoBwCeXfaP+D3Jxci3sSkCSzNIQg+XIxE3D5S2i2fCvMH6NS1 f5cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Rpu0OJSy; 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 qt15si11846465ejb.319.2020.08.17.16.05.01; Mon, 17 Aug 2020 16:05:25 -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=Rpu0OJSy; 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 S1728089AbgHQVV7 (ORCPT + 99 others); Mon, 17 Aug 2020 17:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbgHQVV6 (ORCPT ); Mon, 17 Aug 2020 17:21:58 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49A02C061389 for ; Mon, 17 Aug 2020 14:21:58 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id p138so19835260yba.12 for ; Mon, 17 Aug 2020 14:21:58 -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=HAjGBhrOHTQnEFg1YCoKCKzFr3JrN5+1ofDPMY2xqK4=; b=Rpu0OJSyGJxFS9UuwUtd0mU9gFyAmXO12edBrAUxGaBXAtDdejm4NCx9TRQyTszDjk D53GPQC7Wg6UkSP0zFxHFVbB1SGN3N5o+T1tpxagbRSy+Z3pzVuceLhRCG9bK2mws8u6 Ob+kQqm+n5vr9HgrLxoEale2LhmZvWpCJYU6AYfhgl9DsaTchS9Gk0Um1Dm78ta11Xo7 86jFu+JL8RBhE4/oEgvEUCCD1PpiwJXID2UyWC+PknrQMEAwjlmLfx6jWzV84U1V2i6C p735ZrMODb42p/iTJ3xqnh/3c6C681ewexsn93FbnpWCU+PsejbMv6DIHAQhoGi3jpA4 jKnA== 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=HAjGBhrOHTQnEFg1YCoKCKzFr3JrN5+1ofDPMY2xqK4=; b=cxegf+L55e85DdOO5tjbZRu5Qg3OWhCzYMc6Xoo1bb120lLuOdIrC8L18usGQCSlJS mRoSJGlXRc6gbmulT+ORyp44f+GdjLxoM9enp5Wl3mg0DFc5wQbQu9IMzqe9dbOFeyXu cdtuNn6nv7tBJ4itKbDfjb2+9hx9g6OK+mQX/UMv0HiSpCPzzAOcJe066HGxOTliE3Ls 3gp6TeN5t3iiHZj98rtzdqDmb5U7DelvPc9jgpbdv09PemRQr9ApGjF4vAF/TnZHc0eM Vu8fFNImR3meG4bNNJ2CoTdcK3G4PjM37rnyvSizfMH7JH6kfeYsHiSmiMrj+8RVa9Xz 4DvQ== X-Gm-Message-State: AOAM530XwNNNhu0J9WQ1jJoxcBKpfCi8K2tzfPpcC5fea7dQ0LhxterX 6C3yLKIddyP+QxbJcvMb45b8HA3elVolC2BCTNNpFd6k8v/dPLIk78deOSUuuDtlhs3NXa3s3R6 H7zay42/GsjsJ2Lk/sbv//T+No4dn26sVYM+p09x21Eya0///M4QCpPTduZ0h1emtsERL9WYOsO ye X-Received: by 2002:a5b:3d2:: with SMTP id t18mr23479124ybp.176.1597699317061; Mon, 17 Aug 2020 14:21:57 -0700 (PDT) Date: Mon, 17 Aug 2020 14:21:48 -0700 In-Reply-To: <20200817212148.3839311-1-yudiliu@google.com> Message-Id: <20200817142137.RFC.v2.1.Ibaa1dfd49179a141c19a651f3c2132a28b71b344@changeid> Mime-Version: 1.0 References: <20200817212148.3839311-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 | 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