Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2047679ybb; Thu, 9 Apr 2020 14:06:49 -0700 (PDT) X-Google-Smtp-Source: APiQypI1J0uWYwjM4W5IGqZicV+nAbcryit+sHyv7oUKfkqwmsqJcYXDjQEoWZYq19xTXCSsTU3Q X-Received: by 2002:a37:c403:: with SMTP id d3mr823186qki.448.1586466409153; Thu, 09 Apr 2020 14:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586466409; cv=none; d=google.com; s=arc-20160816; b=Bq+no8z7BkPyywaKU/0+nbPHNdQmEXXhzSZ1hpNFV0dt4qrsOx5pkG9i5W6Axr7+zp ssG0Jc/UNgnwXD8IWAOyIT0tARxXRgEhHVXNd98PTx7pkCnAnOJ518PK5S5Xh4jutlRm vuADNDnCZFlIKHAuqNIaJ7DIpJAuRcgcFbrSN5T2sEGec0o9AyzzAXqoqzWkQxQ7Uhgc DwKEOJ8L+nSDW3HfU+ST7CzTGSHtQrThKWazmqKUP2V64cowMH5Yi7lVFBEK63fVZwGD tQLBO52Mz71eTTtx0etVv38s8YKEPKmH0IwxGWAx8i5cECa5savBo0jBWbNGmPXUubpJ 5ZnA== 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=D5XJkx6+Y2ICVIFL0vTLRr64b9SHNkA+m1ZXNsfgSio=; b=heShtmpOV66je9j/TEZbq8xY5NM/Yer8om6UJrXKpgLQhM4a2ZFq/JdAHe210YHZoN 6LCUiS7dZkiwwE2dLXsDr2TUnwgRMXG2VTw3C/IwvPeU7J+TnFSi82yQqcEnUSv4TSVu T1j/qLhkrEuoNSGaJ0yToLhKShYrYZTCy66iamJc9CXukoybkMq1xt5FWeqQ2W8lt3bB UQF3bWiWaQ8h6xaVlNQJCnSphnFJijPko5xcwJqAzm2R+e9SmIveYq0tZyNHoYrkML6E NIgrsH6csx18a1+71JHKJ7KBR4TBNx50i0iHWXlbBtZ5HizbCWGzdehqunPrxOs0koba 0NFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=avvD5+Wa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si86932qkj.162.2020.04.09.14.06.16; Thu, 09 Apr 2020 14:06:49 -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; dkim=pass header.i=@chromium.org header.s=google header.b=avvD5+Wa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbgDIVF5 (ORCPT + 99 others); Thu, 9 Apr 2020 17:05:57 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45239 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbgDIVF5 (ORCPT ); Thu, 9 Apr 2020 17:05:57 -0400 Received: by mail-ed1-f65.google.com with SMTP id m12so1706128edl.12 for ; Thu, 09 Apr 2020 14:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=D5XJkx6+Y2ICVIFL0vTLRr64b9SHNkA+m1ZXNsfgSio=; b=avvD5+WamL1ViZqZ4j6xHrYqX2z6ZHbewMXpT5c2VnGSxG1fXJXNKvlzNtFBsVoSCv zP6bz48sMCIZojWE4xw2AzNay9X8HjtrEspZ/dqFBsPebN77EODwHmVqWs715PNPQKU7 rWdddSj6ef2viETVF8bAPpqrci/+0Z/TTqC+w= 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=D5XJkx6+Y2ICVIFL0vTLRr64b9SHNkA+m1ZXNsfgSio=; b=FnWSnuYLJmYPeBzCiCUa5HzUsPxNnueQvs7C56t4Nop0DgAmewQ+JFHCJ0xFMXCCTS vmEfnN17ZQPwDIsCgLQwzcec7nlNDaWQ/XIB0I20Nz49zkKXzPuHuD9dFEgLKjjBIJhc Ch7O7gjxqgL9WQALNsspF/OYuseFs377HYzHZACN3r7ojafJxIHneE74rD+vcKP9uen5 Qd8hiafNu/AUP8Bx/fBQ/JQwjgcK2/4YwCMUUxbF7CLDW35T4IZ9LM8RFQjGHQglizcK GA6IEBvvwhV70kLOdg/Sf/9QQnxKUqA5nbQFs2vR9hQwNCp+0JarhtpJ+Y5+a5tlwaDh eLAg== X-Gm-Message-State: AGi0PuZe7Ij1scFVNj/B2Wpq2WpgMiGc1uzpVuu56OudyyuzIM+10O5H sox4GRia17Vc5H/yWLq3f2xZLkaSuMI= X-Received: by 2002:a17:906:4cd2:: with SMTP id q18mr1005967ejt.70.1586466353684; Thu, 09 Apr 2020 14:05:53 -0700 (PDT) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com. [209.85.221.46]) by smtp.gmail.com with ESMTPSA id p12sm13432edx.43.2020.04.09.14.05.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 14:05:52 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id i10so7367255wrv.10 for ; Thu, 09 Apr 2020 14:05:52 -0700 (PDT) X-Received: by 2002:a5d:42c1:: with SMTP id t1mr1022360wrr.215.1586466352166; Thu, 09 Apr 2020 14:05:52 -0700 (PDT) MIME-Version: 1.0 References: <20200401221320.12105-1-sonnysasaka@chromium.org> <6A574E50-BBF3-4967-9C93-6F4B6DAFB47D@holtmann.org> In-Reply-To: <6A574E50-BBF3-4967-9C93-6F4B6DAFB47D@holtmann.org> From: Sonny Sasaka Date: Thu, 9 Apr 2020 14:05:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] device: Add device type property To: Marcel Holtmann Cc: Bluez mailing list , Eric Caruso 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 Thanks for the feedback, Marcel. Will come back with the modified patches based on your suggestions. On Thu, Apr 9, 2020 at 11:12 AM Marcel Holtmann wrote= : > > 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 devic= e. > > > > + 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 =E2=80=9CBearer=E2=80=9D might be be= tter. Also it might be better as array{string} actually. > > Regards > > Marcel >