Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1898417pxa; Sun, 23 Aug 2020 21:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMtQdVLTTrO7MyWQf/HyyCVXBvE24VkJODr0MAKOn1QlKPtPSYYZ4Y8V7ImpVbSkBbcvqh X-Received: by 2002:a17:906:a201:: with SMTP id r1mr3874544ejy.432.1598244437302; Sun, 23 Aug 2020 21:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598244437; cv=none; d=google.com; s=arc-20160816; b=GYpkknTjb9ouNxdxATEIHx+PCruFLjWv5pGd5l5w9fvSl0FOWz5TNoovg0/8D0/pPX 9h+Evl0fT/Zlgd1nI1krjJ+xa9w5rPNJx+hvVbmtWRe95JGl1mebZV20vHrK12AKhmUH 8uqa6igvaCtuAeHL0B0TvSWVZZAkE1iA4OS8Em9ELQw+DanH5moZEsrUxzenQw0NPIRV XERAQ3wkUurohfRyA3ttfIWcjEvqN1xWXsVx+MflVm6A8HyPxaIJgUHwOJx/r92wkBw2 f22/xSz/Q+6gLuXGcgMwx4ou1aoKcD/KkI4pLVc2YtEc80yqmy76ffL9FeMMG0+GBGLX 1DPQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=g97OK8BMxPofcHkrZvJD2m1Y/Wm1mLKLxmiDXdgVU2I=; b=Vc9i3fyyVgzT9qCFxVGz1a8OINMRl0cIcrvyt0EYQCJMRZUvGNOjAWO95IKCJ/m58M 2yqlOzSA0gmTAhynLbkYzkBjYQMvoTNTbk6is3nmf2+pL9JPDgoe2NR9QK4M4Tp95i+P vAgnKWAlb3c1asEfIJBrt+qqfRM/CeUpU1w0Wddfi5IDwQ5OHnH4qZJ/Y0taX7NAaxK5 5H3wN1iiY+PKGiaGER4j/dQG0Fc6bfUKfrEw0DHYJyaxjoOZP4X06ct0VpOK8zUhuPxK v1Z0u3mcMjGne84v0xoBTUyvmhOWmatxrcMuBHy3AjrmSm52G09571suyYs9hQzFhcLP TTiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r5si228981edo.295.2020.08.23.21.46.28; Sun, 23 Aug 2020 21:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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 S1727986AbgHXDyT (ORCPT + 99 others); Sun, 23 Aug 2020 23:54:19 -0400 Received: from mga07.intel.com ([134.134.136.100]:64622 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbgHXDyT (ORCPT ); Sun, 23 Aug 2020 23:54:19 -0400 IronPort-SDR: UuRAfZvCdXJpz/6l/IAbAQoLDRDiZKBc/IIFT2pWmU6K2eC2cTH4oBhcR0IGtpon5bwN6XSknf ZvXt6Yws6UEg== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="220106401" X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="220106401" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2020 20:54:18 -0700 IronPort-SDR: 8NgeNABJoNFHhGcMG+Aa6pMKKL1WbzOeCZc4cM4h+2AbGusKIEifsyh0XLK0L8OqAHbxDOsjhJ CE4roO0Llw6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="322017099" Received: from jlpajela-mobl.amr.corp.intel.com (HELO ingas-nuc1.intel.com) ([10.252.134.16]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2020 20:54:18 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 3/4] tools/mesh-cfglient: Add "options" to Send/DevKeySend Date: Sun, 23 Aug 2020 20:54:14 -0700 Message-Id: <20200824035415.13420-4-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200824035415.13420-1-inga.stotland@intel.com> References: <20200824035415.13420-1-inga.stotland@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This adds a new dictionary paramenter (empty by default) when invoking Send() and DevKeySend() methods. --- tools/mesh-cfgclient.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c index 59f079213..3987e3179 100644 --- a/tools/mesh-cfgclient.c +++ b/tools/mesh-cfgclient.c @@ -274,6 +274,14 @@ static void send_msg_setup(struct l_dbus_message *msg, void *user_data) l_dbus_message_builder_append_basic(builder, 'b', &req->rmt); l_dbus_message_builder_append_basic(builder, 'q', &req->idx); + + /* Options */ + l_dbus_message_builder_enter_array(builder, "{sv}"); + l_dbus_message_builder_enter_dict(builder, "sv"); + l_dbus_message_builder_leave_dict(builder); + l_dbus_message_builder_leave_array(builder); + + /* Data */ append_byte_array(builder, req->data, req->len); l_dbus_message_builder_finalize(builder); l_dbus_message_builder_destroy(builder); -- 2.26.2