Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF5BFECDE4B for ; Thu, 8 Nov 2018 18:46:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 99CC6204FD for ; Thu, 8 Nov 2018 18:46:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99CC6204FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbeKIEXX (ORCPT ); Thu, 8 Nov 2018 23:23:23 -0500 Received: from mga17.intel.com ([192.55.52.151]:44236 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeKIEXX (ORCPT ); Thu, 8 Nov 2018 23:23:23 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2018 10:46:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,480,1534834800"; d="p7s'?scan'208";a="94725755" Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by FMSMGA003.fm.intel.com with ESMTP; 08 Nov 2018 10:46:35 -0800 Received: from orsmsx115.amr.corp.intel.com (10.22.240.11) by ORSMSX110.amr.corp.intel.com (10.22.240.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 8 Nov 2018 10:46:35 -0800 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.166]) by ORSMSX115.amr.corp.intel.com ([169.254.4.106]) with mapi id 14.03.0415.000; Thu, 8 Nov 2018 10:46:34 -0800 From: "Stotland, Inga" To: "johan.hedberg@gmail.com" CC: "marcel@holtmann.org" , "linux-bluetooth@vger.kernel.org" , "Gix, Brian" Subject: Re: [PATCH BlueZ] doc: Initial Bluetooth Mesh API Thread-Topic: [PATCH BlueZ] doc: Initial Bluetooth Mesh API Thread-Index: AQHUdjPOFfcPMtpxg0mqvkcMU8kOyqVGOeYAgACGiYA= Date: Thu, 8 Nov 2018 18:46:34 +0000 Message-ID: References: <20181107004950.9153-1-inga.stotland@intel.com> <4DBB63ED-41C4-4F27-B2BC-1ADB090B1656@gmail.com> In-Reply-To: <4DBB63ED-41C4-4F27-B2BC-1ADB090B1656@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.254.188.27] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-DP2o56Ii2MHCYW2OtQ90" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-DP2o56Ii2MHCYW2OtQ90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Johan, On Thu, 2018-11-08 at 12:45 +0200, Johan Hedberg wrote: > Hi Inga, >=20 > At first glance this looks quite good to me, just some cosmetic > comments: >=20 > > On 7 Nov 2018, at 2.49, Inga Stotland > > wrote: > > +Service org.bluez.mesh1 >=20 > I don=E2=80=99t think we=E2=80=99ve had the habit of versioning well-know= n bus names > so far. Or did you see this somewhere? So I=E2=80=99d just leave away the > version here. >=20 =46rom D-Bus Api Design Guidelines: ( https://dbus.freedesktop.org/doc/dbus-api-design.html#api-versioning): "In summary, version numbers should be included in all service names, interface names and object paths: com.example.MyService1 com.example.MyService1.InterestingInterface com.example.MyService1.OtherInterface /com/example/MyService1/Manager /com/example/MyService1/OtherObject " I chose to do the name versioning based on the official guidelines. However, if we want to preserve the historical bluez approach, I don't mind changing it. > > +Interface org.bluez.mesh1.Network >=20 > The way the existing interfaces do versioning is to have the version > at the very end, so this should be org.bluez.mesh.Network1 >=20 > > +Object path /org/bluez/mesh1 >=20 > I don=E2=80=99t think we have the habit of versioning object paths either= . > They=E2=80=99re anyway (for the most part) irrelevant - it=E2=80=99s the = interfaces > an object has that defines its type. >=20 >=20 > > + PossibleErrors: > > + org.bluez.mesh1.Error.Failed, > > + org.bluez.mesh1.Error.Canceled, > > + org.bluez.mesh1.Error.InvalidArguments > > + org.bluez.mesh1.Error.Timeout >=20 > We=E2=80=99ve never versioned errors either, or did you see this done > somewhere? So just leave it out from here. So you can see a number of services following the above mentioned D-Bus=20 API Guidelines by running d-feet: e..g., org.freedesktop.GeoClue2 or org.freedesktop.UDisks2 or org.fedoraprojectFirewallD1 >=20 > > + (object node, array{byte, array{(uint16, dict}} > > configuration) Attach( > > + =09 > > object app_defined_root, uint64 token) > >=20 >=20 > This is a bit hard to read due to the long & complex return value. > I=E2=80=99d suggest doing the line break before =E2=80=9CAttatch=E2=80=9D= (a common C coding- > style as well). Agree >=20 > > + void Send(object element_path, uint16_t destination, > > uint16 key_index, > > + array{b > > yte} data) >=20 > Minor inconsistency: should be uint16 instead of uint16_t Agree >=20 > Johan Thank you for the review. Regards, Inga --=-DP2o56Ii2MHCYW2OtQ90 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbTCCBOsw ggPToAMCAQICEFLpAsoR6ESdlGU4L6MaMLswDQYJKoZI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