Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2541731pxa; Mon, 24 Aug 2020 17:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1OKPP7LwqS/dJArr9REwtwdU5dY5PtZyQ9QJa9SqOD/tOrmMAFZtXnpXuT+GKrcKf7o2x X-Received: by 2002:a17:906:b6d5:: with SMTP id ec21mr7756522ejb.396.1598316968780; Mon, 24 Aug 2020 17:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598316968; cv=none; d=google.com; s=arc-20160816; b=w45kPkuEKB/sNLltaUF5j8R+nWGPDBz+jPGC2Qm/Rt6pLJfqVo8VzPZ9Pv3KILLmsJ puknQCuJQECFtbCXXmdtOH2JevbCUWLHQi8NgODRQD0Cn5MYsiuXLKIhiKoZs65L7bI2 bs8fADGjcl/i28S3NnRVHK5lxTRKOe0Gs/RC+9E55wa07btfm6cRMzyYflcOPKm1UrNP PmdN80MT7HARivTMcgFiaU62lUXB0im8woo5GT6mdZU5e3vFcCGr4OKVe0nosWt+B075 8aZ+KulJxkioo+1IWMUJgxM+1fxFdb3CxTL5B7R7HT7ufx8malII14+FTG1dC17pM8HJ 9eYw== 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=r2OFUYDzEymZDOo73HfryR+LpUVR1xJPEzwUNpX/m9rSpeEcgirZxFQURA0zKk2pfi hbAG6k2XTmARByRxE5voGJ5l/dT0DAfnZgTnpiyJZHi0Y1+memQ64rqECxmUQJfCJULE hR+Vlo42uEcrN9zaz24RjLs/3EkxPST4Mkn0u7RjzACLaXPhfE9FYaNxw+Nk2xdv1LoM WkT67s2GHvv0A1sNwlfXXqE/6k5FSvLIN3n12b2uUD+gyXZlKfQGO50HCOIYDmKFh60x uQNzbmDyJy0VvuNCvtN127CNBTLjjoj2QC0LvJq6/EM0z04Z3glN3RE2RFuIotYMAb8a MZZg== 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 a12si5777041edq.495.2020.08.24.17.55.38; Mon, 24 Aug 2020 17:56:08 -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 S1728087AbgHYAyp (ORCPT + 99 others); Mon, 24 Aug 2020 20:54:45 -0400 Received: from mga02.intel.com ([134.134.136.20]:44191 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728356AbgHYAym (ORCPT ); Mon, 24 Aug 2020 20:54:42 -0400 IronPort-SDR: XqRs41LnA66uagpDiMY2qktO4y77E1VaYSk1z3nc9i3T08AEC43FY1PYDc8JeZ3L79BCTqwfFq zoOJTHmuq2rA== X-IronPort-AV: E=McAfee;i="6000,8403,9723"; a="143797446" X-IronPort-AV: E=Sophos;i="5.76,350,1592895600"; d="scan'208";a="143797446" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2020 17:54:42 -0700 IronPort-SDR: 7KEChBvVbPBBQL2710uR2k218z1pNA82ds5jFQgiTJx0tjDv/h7roQXXqJUVqgZFOS3eIH313r 0F4bEwWW1Hjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,350,1592895600"; d="scan'208";a="474141846" Received: from apaharia-mobl.gar.corp.intel.com (HELO ingas-nuc1.intel.com) ([10.255.231.108]) by orsmga005.jf.intel.com with ESMTP; 24 Aug 2020 17:54:42 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ v2 3/4] tools/mesh-cfglient: Add "options" to Send/DevKeySend Date: Mon, 24 Aug 2020 17:54:34 -0700 Message-Id: <20200825005435.26566-4-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200825005435.26566-1-inga.stotland@intel.com> References: <20200825005435.26566-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