Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2446360ybi; Thu, 4 Jul 2019 11:16:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMx1nb9xXlYUkNr2Lu5k44ZMYL0Zhnj+fGf0lEclbSYmGvxrIcHPyMA9KR8WFwQG8Qquot X-Received: by 2002:a17:902:86:: with SMTP id a6mr51293364pla.244.1562264210882; Thu, 04 Jul 2019 11:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562264210; cv=none; d=google.com; s=arc-20160816; b=sqDeWZF95HIQy96v7/G87Bh/5541sMzNYNbfquHcQ8dZhwCmv40m6aCBmmiKXl2MAY FZ1SNfQ4NHaOEQi+HkmK2wPrvYHhHjtfBqTKvHFxduAXCGUehzc4StmKV7JwmfuPMkfe M7/4yTk51re/Y6LG07pDueNWoiCl9UINcknvxfj4lyBcX7Opvw68KbgkHGJ1ZdaMuhqw NdUq/vMZjBhWeqPBvmnPi/GdXbs6u/7oLdBkO3HF4WAqm9QK2UOCtBQbm/lF0lX01qp/ ELH3MGUGeTCaOiVbnodMwTmwncGhWPNgl9bktyy19U4+ea1NKi4znjUajYoWhAR+pXgb 6Uog== 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-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=ncWviw1H1GtswjQ4MtfUBSqGn1eCeQdoAcAyo8ldZ3o=; b=CqxVxr3ZSoWlxYDHbsJ3ycbOSJxCA5o/nKTeHyLeH2TtI5z/zP7weZ0VKbSuoDiXlE sbVll+3JM5LlAQXytqkdNJWfQyDu427lNmIC7E+YGnbc4TJF2hQCkNp1yVSDMCfBrPP2 UbmWTqW42l+Nx3FeWM8Imn4TOt/IRiRbVSb+0NBLEMv6PSB9zBxUGoGP/3NdvCxtghP/ lDEIb1bu4NumQRF8D6tWFGY5FlHHqo5Wg/ZhhoDY62IRnlRGKBJL0T5pvZLXzOSf7xlM mUBezKScdSWiEEcCflnctwDIxPFzvn4UVc36uCINEUfPknny6Q7DrxsLfFcDfDLkuWiW qoKA== 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 v20si6237371pff.26.2019.07.04.11.16.36; Thu, 04 Jul 2019 11:16:50 -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 S1726743AbfGDR6H (ORCPT + 99 others); Thu, 4 Jul 2019 13:58:07 -0400 Received: from mga11.intel.com ([192.55.52.93]:44502 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbfGDR6H (ORCPT ); Thu, 4 Jul 2019 13:58:07 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2019 10:58:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,451,1557212400"; d="scan'208";a="166875583" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga003.jf.intel.com with ESMTP; 04 Jul 2019 10:58:06 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.44]) by ORSMSX102.amr.corp.intel.com ([169.254.3.142]) with mapi id 14.03.0439.000; Thu, 4 Jul 2019 10:58:06 -0700 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" CC: "michal.lowas-rzechonek@silvair.com" Subject: Re: [PATCH BlueZ] mesh: Use l_dbus_message...() APIs in more consistent fashion Thread-Topic: [PATCH BlueZ] mesh: Use l_dbus_message...() APIs in more consistent fashion Thread-Index: AQHVMjvIHpOk8bfdZEu0vXK8DDzW06a7NPCA Date: Thu, 4 Jul 2019 17:58:06 +0000 Message-ID: References: <20190704074040.18260-1-inga.stotland@intel.com> In-Reply-To: <20190704074040.18260-1-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.105.106] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QXBwbGllZA0KDQpPbiBUaHUsIDIwMTktMDctMDQgYXQgMDA6NDAgLTA3MDAsIEluZ2EgU3RvdGxh bmQgd3JvdGU6DQo+IFRoaXMgcmVtb3ZlcyBjaGVja3MgZm9yIHRoZSByZXR1cm4gdmFsdWVzIG9m IGxfZGJ1c19tZXNzYWdlLi4uKCkNCj4gY2FsbHMgaW4gdGhlIGZldyBwbGFjZXMgd2hlcmUgd2Ug Y2FuIHJlbHkgb24gZWxsIHRvIGhhbmRsZSBlcnJvcg0KPiBjYXNlcyBncmFjZWZ1bGx5Lg0KPiAt LS0NCj4gIG1lc2gvZGJ1cy5jICB8IDIwICsrKysrKysrKystLS0tLS0tLS0tDQo+ICBtZXNoL2Ri dXMuaCAgfCAgMiArLQ0KPiAgbWVzaC9tb2RlbC5jIHwgMzMgKysrKysrKysrLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS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