Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1767056ybc; Wed, 20 Nov 2019 03:52:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyHGP5C4RfZKziJtByozVpQ7bMNuKm15WICeqPGlOQIRE+KXOrH4MrXjliXdwxCIztSgJqn X-Received: by 2002:a17:906:7812:: with SMTP id u18mr4944664ejm.6.1574250738626; Wed, 20 Nov 2019 03:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574250738; cv=none; d=google.com; s=arc-20160816; b=LijPASnF9k6Wzyk8sRCBh0efejtwarNMhaguGXgvSwZhBUCs90wYIpddImBNodZa9A /r/0A0WN11MHSenFocVXr5987Lm8BnnzfGlIQCoOtE2Fnb3vBMwbYkSMYbCmIsoXIEex EeoK9KbMWWZ2+Qgoko4ZzJFgrzNzLGzY430ZUJPEQrD8p1et7cJxNVwNtbNPjz1TLBH+ dIRf2BwWv945Xrlq4EJtoVQsXvkjIgvVLcuANN8qrNyT0W0eutYmievdcFjsv/+Gt6De 2p/+84WJQvyCkl+HkJmFkA05uDVltYFooFqlked8jIS8UYq4lCkmpJMWWTaXa5iAA4Bh xQUw== 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=lziwnzQ0VV6OaEApFgLdcnyv2faXiVXPEN+aEW8ouIg=; b=QMQT9kp3JdAg8zau/lhTr7WUA3SZfZK4/e2Y+DeRdM8KkZPu+WrdjwOA74Ofx1uc7+ AHISENSloyBhUbaJkQfce4IdUDUlZw8gYbiCWj50AtYwlPFFcgu+fxqRHib2xc8Virka W/w9iNbFcUMT7BAvfu4fIESRMsox3g+msT1f6OnrlvXVmwQ4C9uuz6oSuSAABkqNeCh4 wFMewmUy9/k7jBVRPOvlSgFDzACmA6nH1p316Ni08TQGh7xPT/uxH5k8L+b1so2yW83j dbvIlbzCP81jH2dvMxoIZbSjd16kYuK0DDA4/Q/fHS+6xnLMSOUgRmckin2yVRmoFsbq cFcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=Phccrz5b; 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 k11si15887811ejv.152.2019.11.20.03.51.38; Wed, 20 Nov 2019 03:52:18 -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=Phccrz5b; 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 S1728863AbfKTKuG (ORCPT + 99 others); Wed, 20 Nov 2019 05:50:06 -0500 Received: from mail-lj1-f174.google.com ([209.85.208.174]:39173 "EHLO mail-lj1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbfKTKuG (ORCPT ); Wed, 20 Nov 2019 05:50:06 -0500 Received: by mail-lj1-f174.google.com with SMTP id p18so26983449ljc.6 for ; Wed, 20 Nov 2019 02:50:03 -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=lziwnzQ0VV6OaEApFgLdcnyv2faXiVXPEN+aEW8ouIg=; b=Phccrz5bMJ0ooFSTVkqeCY2asqBNJPA5eHoVN3mwS4/vu5AOlxdOkn2g5kDmx2Shwn VBJa9JVxxZ3BsrGzzkGOM8c/GgFtoOCuglXcVO3sNM2SUXnj3k59sM/paK5w1F7JFXWy d39gIvEKGwUQnj0PdkqO4MeMiuMoIKK8Z9kRb4VluI57tnyKlvtZ8MJwlqZ820oznJdk M3gVF4kK5BlhmHwgIySWXtvEaWUxbweY7EXnJdvbaJxvwPipF+rb0M9XMNLyZM9Rs2xh ertn8RVaY2Jxa/ewcab4s2OwA20/PKhhLr+H1LmrB/c+0yTRQCAk/vC+dbAW5baHftRc sK5Q== 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=lziwnzQ0VV6OaEApFgLdcnyv2faXiVXPEN+aEW8ouIg=; b=JeSNj81WUzko6QOSlaqRENj8PWP4gY+uzj08EsQX9WLQiWWDvqmUchi8Eo5MnWChJ2 MALNduKtKUu+tehM8hY9lpXBjmDTsI4bGSb+rbxTRMAhYN7XIHApjCYPJ6/yC/mO0oQ3 dF4UK/Y/tpIJ2xcP0ezd7EygkI7wsyKAVOFl4FZFH8/8GotnYIb6EiOKIztvEzRIqHj0 j1uGkpNKdHKHT5Ig69kPHzE8wqWhydhummy37y9AVVyF3vw8cXSClj27nD29Bv8rw9tM Km2GttpaOjhbOjPIv6HHWnD2JbIbUr6hG9RgSl1Eu+VbrhBsOrjPm0iz8USiDM2cq+Bc waCA== X-Gm-Message-State: APjAAAUvfnoRTifBzsfUrjNp2tsn6+p1UKovtnnCEALNSRzJx9wi/oju mPExFmFBQ6uBO2v46NW06ArDPvFHmZc= X-Received: by 2002:a2e:9a95:: with SMTP id p21mr2056370lji.175.1574247002402; Wed, 20 Nov 2019 02:50:02 -0800 (PST) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id t13sm11299830ljo.70.2019.11.20.02.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:50:01 -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 v2] mesh: Fix names of dbus management interface input arguments Date: Wed, 20 Nov 2019 11:49:50 +0100 Message-Id: <20191120104950.7904-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: --- v2 - Fixed coding standard mesh/manager.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/mesh/manager.c b/mesh/manager.c index adbb01280..1fb9df5e6 100644 --- a/mesh/manager.c +++ b/mesh/manager.c @@ -750,36 +750,34 @@ 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, "AddNode", 0, add_node_call, + "", "ay", "uuid"); l_dbus_interface_method(iface, "ImportRemoteNode", 0, import_node_call, - "", "qyay", "", "primary", - "count", "dev_key"); + "", "qyay", "primary", "count", "dev_key"); l_dbus_interface_method(iface, "DeleteRemoteNode", 0, delete_node_call, - "", "qy", "", "primary", "count"); + "", "qy", "primary", "count"); l_dbus_interface_method(iface, "UnprovisionedScan", 0, start_scan_call, - "", "q", "", "seconds"); + "", "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"); + "", "q", "net_index"); l_dbus_interface_method(iface, "UpdateSubnet", 0, update_subnet_call, - "", "q", "", "net_index"); + "", "q", "net_index"); l_dbus_interface_method(iface, "DeleteSubnet", 0, delete_subnet_call, - "", "q", "", "net_index"); + "", "q", "net_index"); l_dbus_interface_method(iface, "ImportSubnet", 0, import_subnet_call, - "", "qay", "", "net_index", "net_key"); + "", "qay", "net_index", "net_key"); l_dbus_interface_method(iface, "CreateAppKey", 0, create_appkey_call, - "", "qq", "", "net_index", "app_index"); + "", "qq", "net_index", "app_index"); l_dbus_interface_method(iface, "UpdateAppKey", 0, update_appkey_call, - "", "q", "", "app_index"); + "", "q", "app_index"); l_dbus_interface_method(iface, "DeleteAppKey", 0, delete_appkey_call, - "", "q", "", "app_index"); + "", "q", "app_index"); l_dbus_interface_method(iface, "ImportAppKey", 0, import_appkey_call, - "", "qqay", "", "net_index", "app_index", - "app_key"); + "", "qqay", "net_index", "app_index", "app_key"); l_dbus_interface_method(iface, "SetKeyPhase", 0, set_key_phase_call, - "", "qy", "", "net_index", "phase"); + "", "qy", "net_index", "phase"); } bool manager_dbus_init(struct l_dbus *bus) -- 2.22.0