Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7189335ybi; Wed, 5 Jun 2019 12:50:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBbj944PZOJHcYoadmpEUWItwk7dUqTEM5j3kvdbqT005aEjA9O398KyMucBxzURaMUn9o X-Received: by 2002:a62:3085:: with SMTP id w127mr47048173pfw.170.1559764212634; Wed, 05 Jun 2019 12:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559764212; cv=none; d=google.com; s=arc-20160816; b=ChBPg5hF7ZUobk1aOXlXcKNJFehzNjSxj4UhOOCHNZBa8RGbx8dzAfjfOF9TL1PrQ6 KCYEwITDcChCy89WbuGtBov0s31On5dvtKjKFdTO55L8UDAKBZ74BdNsCuVcFQ9gQ++v GgzYmxRdVG6DfRATN3WQHhQ7pZSCmR8MvtVWfYSD4HYIf0L/kYPi1sZQd/Njb/cdf7N1 9AYnDx02ENfuMqAROIGyotRcl/VeCSWmiM1nvWP2ZVwf3FtYa8Zdi7xW0vIXhtglsgJ5 q5BLpvBk2sG72Yeu4xKv71TTegzAYl8Lt+L6doGKN0i6IgAzCPQKud8XMdPssapw+cC9 VRPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=BR1J909RPi22n2+0wvDqWVYCFf+WEe+v6W3lzMx7LBU=; b=oMy6mLZ3x9kN55mZ14gDAnzMpMP7CNbQwGFyGiGrDRF6kSkZfE9FEeyAs5x3lZMdOP 9r2XNn7qi7yTBAIYn8sTZIuv+JF/MmD+FjNp6gWf0zM7zMl6x3HWkcNIG1ZOD15yxGC8 jp0g6bDjk60j15PEKqiMbmKxsjDpRGvHgbv7coy5h4m+L9u3hm5L3myDJgQMqwN3YdOV mj1HKiNwhM4nhPIgBzJE/YrbX0aWi2na6dLh+Jl0HHUlRAqc3s+yaQAb/ThRQwpQ+ymc Cf7alXBX2D1rQn3lQy1ZnQQGEMwK61r1HIcNER2QKY1Dgs62TaHdgU8KbtdWI8Ku1IXg Xmbw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si32040791pfa.108.2019.06.05.12.49.45; Wed, 05 Jun 2019 12:50:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfFETti (ORCPT + 99 others); Wed, 5 Jun 2019 15:49:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:12429 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbfFETti (ORCPT ); Wed, 5 Jun 2019 15:49:38 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2019 12:49:37 -0700 X-ExtLoop1: 1 Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga008.fm.intel.com with ESMTP; 05 Jun 2019 12:49:37 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.182]) by ORSMSX101.amr.corp.intel.com ([169.254.8.107]) with mapi id 14.03.0415.000; Wed, 5 Jun 2019 12:49:37 -0700 From: "Stotland, Inga" To: "jakub.witowski@silvair.com" , "linux-bluetooth@vger.kernel.org" CC: "Gix, Brian" Subject: Re: [PATCH BlueZ 0/3] Json storage refactor Thread-Topic: [PATCH BlueZ 0/3] Json storage refactor Thread-Index: AQHVG57P2HDnbxj0gkmleCOVLmgi6qaN7bYA Date: Wed, 5 Jun 2019 19:49:37 +0000 Message-ID: <88230761cfc7650ab44f76f81189d78d3d439aad.camel@intel.com> References: <20190605130106.32372-1-jakub.witowski@silvair.com> In-Reply-To: <20190605130106.32372-1-jakub.witowski@silvair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.254.101.86] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-DP4rMQOqrSNNlaS94tXc" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-DP4rMQOqrSNNlaS94tXc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jakub, On Wed, 2019-06-05 at 15:01 +0200, Jakub Witowski wrote: > Netwrk keys, application keys and elements with models have been > simplified in json storage file. Arrays objects are no longer > required. >=20 > Jakub Witowski (3): > mesh: Refactor elements related object in json file > mesh: Refactor net keys related object in json file > mesh: Refactor app key related object in json file >=20 > mesh/mesh-db.c | 469 ++++++++++++++++++++++++++--------------------- > -- > 1 file changed, 248 insertions(+), 221 deletions(-) >=20 The proposed change would be okay if not for the fact that we plan to re-use the same code for storing the information database for provisioner/configuration client. That puts constraints on the format in which the json data is stored. However, since mesh-db.h describes self-contained API, it should be easy to create a custom bluetooth-meshd solution, i.e., keeping the mesh-db APIs unchanged, but use customized routines to implement them. That should allow you to keep local node configuration in your own format. Best regards, Inga --=-DP4rMQOqrSNNlaS94tXc Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbDCCBOsw ggPToAMCAQICEDabxALowUBS+21KC0JI8fcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0 d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0xMzEyMTEwMDAwMDBa Fw0yMDA1MzAxMDQ4MzhaMHkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEUMBIGA1UEBxMLU2Fu dGEgQ2xhcmExGjAYBgNVBAoTEUludGVsIENvcnBvcmF0aW9uMSswKQYDVQQDEyJJbnRlbCBFeHRl cm5hbCBCYXNpYyBJc3N1aW5nIENBIDRCMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA yzuW/y/g0bznz8BD48M94luFzqHaqY9yGN9H/W0J7hOVBpl0rTQJ6kZ7z7hyDb9kf2UW4ZU25alC i+q5m6NwHg+z9pcN7bQ84SSBueaYF7cXlAg7z3XyZbzSEYP7raeuWRf5fYvYzq8/uI7VNR8o/43w PtDP10YDdO/0J5xrHxnC/9/aU+wTFSVsPqxsd7C58mnu7G4VRJ0n9PG4SfmYNC0h/5fLWuOWhxAv 6MuiK7MmvTPHLMclULgJqVSqG1MbBs0FbzoRHne4Cx0w6rtzPTrzo+bTRqhruaU18lQkzBk6OnyJ UthtaDQIlfyGy2IlZ5F6QEyjItbdKcHHdjBX8wIDAQABo4IBdzCCAXMwHwYDVR0jBBgwFoAUrb2Y ejS0Jvf6xCZU7wO94CTLVBowHQYDVR0OBBYEFNpBI5xaj3GvV4M+INPjZdsMywvbMA4GA1UdDwEB /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