Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1906246ybb; Thu, 9 Apr 2020 11:12:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLfblxhY95VUKSQ538oWqA77N5XqoNfrx6Je+gYc3gCwXu+OuQuGcCaNBh11mJFUDQI4T0N X-Received: by 2002:ac8:65cc:: with SMTP id t12mr649930qto.310.1586455939904; Thu, 09 Apr 2020 11:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586455939; cv=none; d=google.com; s=arc-20160816; b=dQQFNNLZN/5eZJAVcnDjoxhL5PSIjZtlKXLUQQwexTLQHeATomM7zX8x9jeufVN2NU CXAckcyTziquaO9u/dlqplu6lwnmvWOzBVsWdggQfLXSJZtgxLZ+PzS4RyFe9v2xuC9M aSVQ9Tj38tiIt35LLj+Nc5hTeSM2d2D3IMu75hq9e0mFLRoZIAO7mXVvtZI3pwG1bdFf wHfChaqSszdJKiAOUSdpVFtpjVmQNVfC577seYcQc7iKCNYEWor8dwCQ6jphJJHjKQxZ p6YwLSK06jBYLM4ZFE6oJunx+XftEIglRw660nEg9S8MR9tiynKWnBrplsfeGfsYOFLD 97zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=0sYASFwcaEyrcIgL1tbvmbdHe1vL3wd6Dl81Mp5EfEA=; b=A/v5VegoI9MNl1xcegss5CSfIS22LyMRwduSVuXcAeUJ5YiW0Bj0j62iuu2iaOEMOz WmBtZi1Ekvh+DINlfyday5XDADLqpKMJpMmK1GGf6tZLmK/83wT4iP7B5R5Ss0t79l1I hjWpwUI8Ee90T7s3kvw1Gx9kR9SJZdV2vEQK8izTg69+mtorFRBfaRtnT9wSlW4pW0Ur MrriDfyGlSSMLYmdkf0RPYS8cZDB0UgF/d8AwouHHRo0DWyawwHg1tu8yTyocWV9ubXF hJSOF9PuwsXaiAcKuMoyA3asKybq+FXg/QsL0LtrhdPycE50yZp7/thdusEofVuxT3Ho w8UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si6230737qvs.207.2020.04.09.11.12.02; Thu, 09 Apr 2020 11:12:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgDISL7 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Apr 2020 14:11:59 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47001 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDISL7 (ORCPT ); Thu, 9 Apr 2020 14:11:59 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id A2CAECECFE; Thu, 9 Apr 2020 20:21:33 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] device: Add device type property From: Marcel Holtmann In-Reply-To: <20200401221320.12105-1-sonnysasaka@chromium.org> Date: Thu, 9 Apr 2020 20:11:58 +0200 Cc: Bluez mailing list , Eric Caruso Content-Transfer-Encoding: 8BIT Message-Id: <6A574E50-BBF3-4967-9C93-6F4B6DAFB47D@holtmann.org> References: <20200401221320.12105-1-sonnysasaka@chromium.org> To: Sonny Sasaka X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sonny, > This allows us to gather information about whether a device > supports BR/EDR, BLE, or both. It appears as DBus Property > "Type" on the org.bluez.Device1 interface. > --- > doc/device-api.txt | 5 +++++ > src/device.c | 31 +++++++++++++++++++++++++++++++ > 2 files changed, 36 insertions(+) my preference is not to combine API documentation patches with code. > > diff --git a/doc/device-api.txt b/doc/device-api.txt > index 65d8fee37..ceb68d2f6 100644 > --- a/doc/device-api.txt > +++ b/doc/device-api.txt > @@ -158,6 +158,11 @@ Properties string Address [readonly] > > The Bluetooth class of device of the remote device. > > + string Type [readonly, optional] > + > + The carriers supported by this remote device. If it > + exists, it can be one of "BR/EDR", "LE", or "DUAL". > + So all values need to be lower case. That is just how we design all API. If we do this, then I think the name “Bearer” might be better. Also it might be better as array{string} actually. Regards Marcel