Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1619919ybc; Wed, 20 Nov 2019 01:12:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxjUWwOtgy/caafodDB2/9OI0J5ewPmOaqB47kIamQ4UrgsNX8VVxGqpxf+PsAUoTQMTYoQ X-Received: by 2002:a17:907:2078:: with SMTP id qp24mr3900823ejb.157.1574241169157; Wed, 20 Nov 2019 01:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574241169; cv=none; d=google.com; s=arc-20160816; b=OdscZn9wzGMplMZECG8Yj+K2ZLmsfD4ckd78Udvctmjy4i6SM7EYVtJyGvUX/7v4+p 3vWupXmuDXVDJT50XQp/Rk8G4IgcGRtT9ICNQKF073b6uG5arnPc5vk16f0HhXrBU2qK pbxlIDXCo1vmbke2ClibYnuJEg+eK9N9Mf9y9SqFHP8Jokvz26JPKtdW8WqRg/u/59/p T6BVY8OdezPPC50l5tD5ZLyBLGKQpCFj4ldyE8JEeRZXnOamiVBttaO0sRxehF6orFsC BnKJ7fhabMQeZE7sEgP5ZJyPQyER4AurwGrMp30Cvq9Iuo42JuxTgz1EQEcSmAaqVOfW MUhA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Qn7jlJNvwwdSucNx2LHY78ABAQNtQxKaodAV+cYjKL4=; b=QkokP28a6Hwkb0uc3hkOaPTvcqgwNLx0luoslykN/AIdol2zGMyuN4gqVoh81DlXxg 8uBuZNWhI+lrVd5nImFwDIl2i17tG7TOTDgg1g14GPK/RZu4UA1NhVx13gmaiQvVKqjz 5YJwmwvFIVk1ptRb3SQWfvb93Xz6moVaHui1rXVrMm9Mw1n41qPXZvIP8PL0Rk1kurMR TOMzFsl0ro14bQyYqQDw2HCaEz7Hu0aWa70lSDqq9dfEByqq8sRiLcAMY1M2LRYtVjLv 4qYP99OAES9R9r8ohFn8Qa8c3w1JCdSsyHEayH6BLlT7s4q/o+GSOokheok46GviLjWV 6d+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=R8P0r6mM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s38si16792088edd.351.2019.11.20.01.12.08; Wed, 20 Nov 2019 01:12:49 -0800 (PST) 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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=R8P0r6mM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbfKTJKa (ORCPT + 99 others); Wed, 20 Nov 2019 04:10:30 -0500 Received: from mail-lj1-f178.google.com ([209.85.208.178]:46902 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbfKTJKa (ORCPT ); Wed, 20 Nov 2019 04:10:30 -0500 Received: by mail-lj1-f178.google.com with SMTP id e9so26602406ljp.13 for ; Wed, 20 Nov 2019 01:10:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Qn7jlJNvwwdSucNx2LHY78ABAQNtQxKaodAV+cYjKL4=; b=R8P0r6mMy7Xr7C1hFQAaC3N0L6b/6/AupTkL6nb3ApdvrmXWDn6eRXqJ2nL0EbMwmJ o7fzILyyPXX9MB7T4nO8XOlR8OcJQhwOUG0Ftf5LZlBOHWdrFYxS7W3/GjvWz23HLnmF JL23na904/zZV2atysp6Ai4u8qguT6rdfsPhv+op7+NvlhWA298nZiBZiBq3Bp1UYTDN RgY+aaEGy02JbFx+t7/ojETk3FVlYuDPwBSuWXEhnvsnwgpLJvk2slOlX3Uze4mBGZCQ Ool5cmx1Cd1zSHRNrj6WF3FpxwGiH/KPuf8sqV5BrfIsmgGC3jbahoswu7LJ73ldruSU DJHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Qn7jlJNvwwdSucNx2LHY78ABAQNtQxKaodAV+cYjKL4=; b=VxfdyS3t2E94shVHH6YQFZARXPQiKWe0TpSnORJQ9zRQkYsMMwFA9u7lccjqsa8tth qo24eGKnxaeSEhdwUGSM9GoZxng0vFGe7M0ou4xmAaVuE5eKtiz7B1hF30n9osgTWtHp Sg0IJLw66ovpKv0WuNtN3KT+InPD7uY2ixLGE/DpbWCm9i0THI/yo59zRq8Fod9lojcA d/P0NzRZzxIyjvjgJgYqZycEHFP5JCGjVnh2sa8W+1F/w7rzPjInH5fpAlcipPU+3c+D HaqITQibSLHo6LPGLLYn9Fkg09KtKEENoyOqSS5ZG073Wfj7majDDUQeb8bE3jpx5pDu 2i4A== X-Gm-Message-State: APjAAAWltEY3MjS0O1NvGwEbagbRxQ4/m2Ko0NADjTZ1SmUqUuXCTmRm HLZCcCGFqZZlWV/YwCM5Bk5uaQ/oZD4= X-Received: by 2002:a2e:9985:: with SMTP id w5mr1673956lji.162.1574241026764; Wed, 20 Nov 2019 01:10:26 -0800 (PST) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id 68sm11710503ljf.26.2019.11.20.01.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 01:10:25 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Gajda?= To: linux-bluetooth@vger.kernel.org Cc: =?UTF-8?q?Rafa=C5=82=20Gajda?= Subject: [PATCH BlueZ] mesh: Fix names of dbus management interface input arguments Date: Wed, 20 Nov 2019 10:09:29 +0100 Message-Id: <20191120090930.3993-1-rafal.gajda@silvair.com> X-Mailer: git-send-email 2.22.0 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 Previously names for method arguments in "org.bluez.mesh.Management1" would not register properly, being shifted by one: This fixes this issue: --- mesh/manager.c | 60 ++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/mesh/manager.c b/mesh/manager.c index adbb01280..1ad6c126d 100644 --- a/mesh/manager.c +++ b/mesh/manager.c @@ -750,37 +750,35 @@ static struct l_dbus_message *set_key_phase_call(struct l_dbus *dbus, static void setup_management_interface(struct l_dbus_interface *iface) { - l_dbus_interface_method(iface, "AddNode", 0, add_node_call, "", "ay", - "uuid"); - l_dbus_interface_method(iface, "ImportRemoteNode", 0, import_node_call, - "", "qyay", "", "primary", - "count", "dev_key"); - l_dbus_interface_method(iface, "DeleteRemoteNode", 0, delete_node_call, - "", "qy", "", "primary", "count"); - l_dbus_interface_method(iface, "UnprovisionedScan", 0, start_scan_call, - "", "q", "", "seconds"); - l_dbus_interface_method(iface, "UnprovisionedScanCancel", 0, - cancel_scan_call, "", ""); - l_dbus_interface_method(iface, "CreateSubnet", 0, create_subnet_call, - "", "q", "", "net_index"); - l_dbus_interface_method(iface, "UpdateSubnet", 0, update_subnet_call, - "", "q", "", "net_index"); - l_dbus_interface_method(iface, "DeleteSubnet", 0, delete_subnet_call, - "", "q", "", "net_index"); - l_dbus_interface_method(iface, "ImportSubnet", 0, import_subnet_call, - "", "qay", "", "net_index", "net_key"); - l_dbus_interface_method(iface, "CreateAppKey", 0, create_appkey_call, - "", "qq", "", "net_index", "app_index"); - l_dbus_interface_method(iface, "UpdateAppKey", 0, update_appkey_call, - "", "q", "", "app_index"); - l_dbus_interface_method(iface, "DeleteAppKey", 0, delete_appkey_call, - "", "q", "", "app_index"); - l_dbus_interface_method(iface, "ImportAppKey", 0, import_appkey_call, - "", "qqay", "", "net_index", "app_index", - "app_key"); - l_dbus_interface_method(iface, "SetKeyPhase", 0, set_key_phase_call, - "", "qy", "", "net_index", "phase"); -} + l_dbus_interface_method(iface, "AddNode", 0, add_node_call, "", + "ay", "uuid"); + l_dbus_interface_method(iface, "ImportRemoteNode", 0, import_node_call, "", + "qyay", "primary", "count", "dev_key"); + l_dbus_interface_method(iface, "DeleteRemoteNode", 0, delete_node_call, "", + "qy", "primary", "count"); + l_dbus_interface_method(iface, "UnprovisionedScan", 0, start_scan_call, "", + "q", "seconds"); + l_dbus_interface_method(iface, "UnprovisionedScanCancel", 0, cancel_scan_call, "", + ""); + l_dbus_interface_method(iface, "CreateSubnet", 0, create_subnet_call, "", + "q", "net_index"); + l_dbus_interface_method(iface, "UpdateSubnet", 0, update_subnet_call, "", + "q", "net_index"); + l_dbus_interface_method(iface, "DeleteSubnet", 0, delete_subnet_call, "", + "q", "net_index"); + l_dbus_interface_method(iface, "ImportSubnet", 0, import_subnet_call, "", + "qay", "net_index", "net_key"); + l_dbus_interface_method(iface, "CreateAppKey", 0, create_appkey_call, "", + "qq", "net_index", "app_index"); + l_dbus_interface_method(iface, "UpdateAppKey", 0, update_appkey_call, "", + "q", "app_index"); + l_dbus_interface_method(iface, "DeleteAppKey", 0, delete_appkey_call, "", + "q", "app_index"); + l_dbus_interface_method(iface, "ImportAppKey", 0, import_appkey_call, "", + "qqay", "net_index", "app_index", "app_key"); + l_dbus_interface_method(iface, "SetKeyPhase", 0, set_key_phase_call, "", + "qy", "net_index", "phase"); + } bool manager_dbus_init(struct l_dbus *bus) { -- 2.22.0