Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp494605ybc; Fri, 22 Nov 2019 08:24:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxZoVuqfhBQFhilJnWiUyCLdaAIaA+g3qSVG2FQIGBJbf7gOE8dyTJ+/bqvsPwCSS2HFL0+ X-Received: by 2002:a17:906:6a43:: with SMTP id n3mr22918327ejs.31.1574439850021; Fri, 22 Nov 2019 08:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574439850; cv=none; d=google.com; s=arc-20160816; b=k1Q5j3c/WLAoE3Mw5BHGV+++I8g5G1yNvD8FYxnaXjqGAj/Kzrcie+UtKvxNXSb83k h/LC/s171vD9iMgojYfy4X+WL4frh3dXakYY96VOtFtTk82TzeJhL4E4gOxIgQ5EnYRN uLWrxHXnG9nUp8KQYt8zBs9hUbvWCdAKU8I5NQqT+Tk21eT/i+WF/X5pcuAZKz6XdQ9J 3qLI/fEQYkESiI4mVaYpDuQUiDMvCHPbrP4kd6sn6oe/NbRmTLWvdyOMlYSvwSDbHQHf mdDD54/9h+3Kf7m9rbNhNBcgEnnPT9S0RDfqveVicM/f4g7H9bCZOXHZ6lhhyphFOETC R3QQ== 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; bh=MDyVIWWRwJFSDmjXOPbsppaOkwYWJLi6SvkRJnBMTZg=; b=NboLYW2DkFL1vNSD9+L3AclSwR7qI1SdjE17C8u5A8f/bGtdgoCKMqw/i2wYEquQ2e epiKWWffqn4N1yFo90mSuoV72DbsDCdeerhG8/7TxXEWvD1cd6GSGF04oaESrlHp5byM OvH5SawfSrvgL7sXk++tGfb9hfhftOvnHKIDeEqIvd90XW2gKmO3M+fd7xj9SsvBTDwD iWrDy5VkQf5iCUCcIluGePE8nnI5W2gdouRRx/iDjgy/WrlnPzzjvc4Qj0/29PYc/PJG MGIb3kB9iEJ6QqzacbvrUOe3OPbcOWgs24ucRIAd7UFMcTwrTSmX6HSyU9uuoCrgp3qT lC6A== 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 v1si5293919edm.285.2019.11.22.08.23.43; Fri, 22 Nov 2019 08:24:10 -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; 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 S1726705AbfKVQXi (ORCPT + 99 others); Fri, 22 Nov 2019 11:23:38 -0500 Received: from mga17.intel.com ([192.55.52.151]:9463 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfKVQXi (ORCPT ); Fri, 22 Nov 2019 11:23:38 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2019 08:23:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,230,1571727600"; d="scan'208";a="197670498" Received: from ingas-nuc1.sea.intel.com ([10.251.140.44]) by orsmga007.jf.intel.com with ESMTP; 22 Nov 2019 08:23:35 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, sbrown@ewol.com, Inga Stotland Subject: [PATCH BlueZ] tools/mesh-cfgclient: Fix signatures in agent methods Date: Fri, 22 Nov 2019 08:23:31 -0800 Message-Id: <20191122162331.10096-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.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 This removes an extra return parameter from PromptNumeric and PromptStatic method signatures. Also, style fixes. --- tools/mesh-cfgclient.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c index 1c617a37b..200eb5b84 100644 --- a/tools/mesh-cfgclient.c +++ b/tools/mesh-cfgclient.c @@ -478,6 +478,7 @@ static struct l_dbus_message *disp_string_call(struct l_dbus *dbus, struct l_dbus_message *msg, void *user_data) { + const char *prompt = "Enter AlphaNumeric code on remote device:"; char *str; if (!l_dbus_message_get_arguments(msg, "s", &str)) { @@ -485,7 +486,7 @@ static struct l_dbus_message *disp_string_call(struct l_dbus *dbus, return l_dbus_message_new_error(msg, dbus_err_fail, NULL); } - bt_shell_printf(COLOR_YELLOW "Enter AlphaNumeric code on remote device: %s\n" COLOR_OFF, str); + bt_shell_printf(COLOR_YELLOW "%s %s\n" COLOR_OFF, prompt, str); return l_dbus_message_new_method_return(msg); } @@ -542,13 +543,13 @@ static void setup_agent_iface(struct l_dbus_interface *iface) NULL); /* TODO: Other properties */ l_dbus_interface_method(iface, "DisplayString", 0, disp_string_call, - "", "s", "value"); + "", "s", "value"); l_dbus_interface_method(iface, "DisplayNumeric", 0, disp_numeric_call, "", "su", "type", "number"); l_dbus_interface_method(iface, "PromptNumeric", 0, prompt_numeric_call, - "u", "s", "type"); + "u", "s", "number", "type"); l_dbus_interface_method(iface, "PromptStatic", 0, prompt_static_call, - "ay", "s", "type"); + "ay", "s", "data", "type"); } static bool register_agent(void) -- 2.21.0