Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2669043pxa; Mon, 17 Aug 2020 16:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIYedAE3Bt3agk/Ja5Hx+n0Uwm91YXbrhH/gVTCgc30Hjms34jTjXsTqzpV4ib4vucN0ba X-Received: by 2002:a17:906:2b44:: with SMTP id b4mr17075044ejg.406.1597705544821; Mon, 17 Aug 2020 16:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597705544; cv=none; d=google.com; s=arc-20160816; b=f+og3bhhCfNJ02a96gE0IM/A1homn6G2773HVAMluOnAJ8rw7efnlLfFGe87aVk9h8 AVFbL5ewTGXPuGy4RjRsW2YfZ+jsEZ6gJQH9xBBOK9qtQp2ZQsX3Xn7OFIwQE4Cr4OVj 174LDKm5FcNFQqB/EXJ8Y7rWTUYgbytQANIEYZ1kjpazXKPQoy18CXQJaAOEZxpb66Uc bp05c1Kx6kpjYc0boJJXGmZhhuPDOLSgKPG90Lq8Mu224mFl5ZkWOh7XPdjA/m/JOboz v+cCWKNRelWnjwgwrvC/D+SHRstL77oinLsIntqsxt095DX8jskE1ggYPb60Cj0o8lYm l7RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bBCMQeGY4Yt1dNxEDMZhgLQrrMQkGXldrNWfS6LMfEI=; b=nyK9GEI8JcUwF3cLYI+60FjPtHXztupHDOi/EdUtpmXMoY1n8niAdMwG/7cBR+V5Ck 00dEE1oJuTs/RVxEsn/gFhvffeEalpsPWZrwO+gxfM7mzHML02Q1Qo24pfHDP4BNjumU dPXZhxabbm254d7Z1Oojf12rklrQlu92D3EWqKjYsZtfGdPYVq2z7OoZNJqDk2hXWqMc Bmosj/OUXZDC5ivYsm0E0DwsjHRRd6T+WnHS64gbGDmhoi93kPl5V+UZNfBEi7apba+f DpLyZ4X6ZXWDiTQAqNCgGy8wj7k3kTiRL98nJkpcfF15N1ZWs510pLdFVY0Rw0EHTZGP PJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KdbZs+H5; 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 a7si12147050ejd.422.2020.08.17.16.05.20; Mon, 17 Aug 2020 16:05:44 -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=KdbZs+H5; 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 S1728030AbgHQV2u (ORCPT + 99 others); Mon, 17 Aug 2020 17:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgHQV2t (ORCPT ); Mon, 17 Aug 2020 17:28:49 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F8FCC061389 for ; Mon, 17 Aug 2020 14:28:48 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id cq28so13572391edb.10 for ; Mon, 17 Aug 2020 14:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bBCMQeGY4Yt1dNxEDMZhgLQrrMQkGXldrNWfS6LMfEI=; b=KdbZs+H53rII9I5yLj6Q2r22pr4S+R+pjy8gN4X9GI+3O0YcCSAROczL+a5sE1zioG 021VvT5EPdrc76z4Q5OX4K054JywINWd8qoBGWrigZ8pAJXKgG3Te0Zje06FbfmCwmJF vcuPKtv5tAYKvOBxaTu8isc9KsW/dQsvHPT9viYaEp3eHbk19vdluvqSnosaAV/NiEYB NCUwrgljyTiomLNztyE8K+cHZPPGSlABlGu/D6MdFWClPYc5xEsu0G7YnJRv9ya1FMnx 0fOq27OWP//x8mm69fV8tNAOxorV4AXX1LBXX67GfzxUIRxA2JKa2KKqK249nSeWJB+D /sHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bBCMQeGY4Yt1dNxEDMZhgLQrrMQkGXldrNWfS6LMfEI=; b=TC9KcFnF+7klp/Tqmq/4CKpg+ceZg2napwjXqvP32vO9V6PsK3UICBmK+kzo5fnTx/ DXDNO6S0rh7aNOZLzybVx6+tBhtkgpCsgG6Qgswogu+3Fw4ve1M/iYAnncxNU9m1zwmW ZIIa/dSJh0SAFFULgzQEg7h5U8vzAZyIXR8hH7X2OErt+JAZ0NbxtRUETaN1vQ+Aiy01 5B/55HiWU4AsQiDGid2Vy8zG1r0kIQsmtCiOXoBkqu5lQ5W+z/ZAz+WUkosllVzRkWRW +YDGOZk85QnWX7ZmOjxh+YnyDvj2/bT0v/AErMWAFlL4AySs5W1HxSeWHksWRER8142i Ydnw== X-Gm-Message-State: AOAM532RQputhBYLhsiu6yBpECHcZXH1IEIbN/+OrfCjTxcs+6xKPbVh ebV/a9p5giju7ri3ip1gTw9VSaiq4e2JakjUysMLsJpaRFDK0A== X-Received: by 2002:a50:f311:: with SMTP id p17mr17507537edm.37.1597699727322; Mon, 17 Aug 2020 14:28:47 -0700 (PDT) MIME-Version: 1.0 References: <20200803235811.2441774-1-yudiliu@google.com> <20200803165804.RFC.v1.1.Ibaa1dfd49179a141c19a651f3c2132a28b71b344@changeid> <7D5EF527-14F0-42C2-B39B-50B55F01BE74@holtmann.org> In-Reply-To: <7D5EF527-14F0-42C2-B39B-50B55F01BE74@holtmann.org> From: Yu Liu Date: Mon, 17 Aug 2020 14:28:11 -0700 Message-ID: Subject: Re: [RFC PATCH v1 1/1] adapter - D-Bus API for querying the adapter's capability To: Marcel Holtmann Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, Thanks for the suggestion, after talking to the original author we dropped the original idea and added the new API as suggested. Thanks. On Wed, Aug 12, 2020 at 5:13 AM Marcel Holtmann wrote= : > > Hi Yu, > > > Initially this is introduced to query whether WBS is supported by the a= dapter, > > 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 descripti= on of > > + the capability. > > + > > + Possible errors: org.bluez.Error.NotReady > > + org.bluez.Error.Failed > > can=E2=80=99t this be just an array{string} that lists the capabilities? > > And if we introduce it, then lets introduce it also with the first user o= f it. Otherwise we end up forgetting to comment on the actual possible capa= bilities. > > Regards > > Marcel >