Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44AE5C07E9D for ; Mon, 26 Sep 2022 07:28:20 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MbZ9Z4C2lz3bY3 for ; Mon, 26 Sep 2022 17:28:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=PldgL+fD; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=inventron.com.tr (client-ip=185.216.113.70; helo=ns1.ihsdnsx51.com; envelope-from=zehra.ozdemir@inventron.com.tr; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=PldgL+fD; dkim-atps=neutral X-Greylist: delayed 394 seconds by postgrey-1.36 at boromir; Mon, 26 Sep 2022 17:27:36 AEST Received: from ns1.ihsdnsx51.com (ns1.ihsdnsx51.com [185.216.113.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MbZ8m3z0fz2xmp for ; Mon, 26 Sep 2022 17:27:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventron.com.tr; s=default; t=1664177252; bh=4tf5SIszSCYFGswOEtVPPdDq8RX9xf9xPuanjaPxOAw=; h=Received:Received:From:To:Subject; b=PldgL+fDNfXz7AisuklIBmdSwxCQHssuwScWme5NhSCobPDiBaWId8wih5qg38ILN 71HzLd9t1ZEVhXlEs0bq9PowmyOZOKpM2CalIEwdJSJnHJd818EFO7ztaBDaFyj+tL HabIrQfsTs5AqW/EuUF/YtddI6CnzqruStC5VUaI= Received: (qmail 957295 invoked from network); 26 Sep 2022 10:20:51 +0300 Received: from 78.189.148.199.static.ttnet.com.tr (HELO INVLT5250ZO) (78.189.148.199) by ns1.ihsdnsx51.com with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 26 Sep 2022 10:20:51 +0300 From: To: Subject: phosphor-buttons multihost control Date: Mon, 26 Sep 2022 10:20:54 +0300 Message-ID: <000001d8d178$845d0900$8d171b00$@inventron.com.tr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D8D191.A9AC8AF0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdjRdcKJGsF9EAzNTg6iwgzCmANqtg== Content-Language: en-us X-PPP-Message-ID: <166417685187.957287.10339256766259454835@ns1.ihsdnsx51.com> X-PPP-Vhost: inventron.com.tr X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "'M. Erhan Yigitbasi'" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This is a multipart message in MIME format. ------=_NextPart_000_0001_01D8D191.A9AC8AF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, There is an isMultiHost() method to control to return true in case the host selector object is available in button-handler.cpp of the phosphor-buttons. And if it is not available, it does not return false and the project gets an error. So we covered this return line with try catch and it works. But my question is, does this host selector object has to be strictly defined for the project to run properly? Thanks. ------=_NextPart_000_0001_01D8D191.A9AC8AF0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

There is an = isMultiHost() method to control to return true in case the host selector = object is available in button-handler.cpp of the phosphor-buttons. And = if it is not available, it does not return false and the project gets an = error. So we covered this return line with try catch and it works. =

But my question is, does this host = selector object has to be strictly defined for the project to run = properly?

 

Thanks.

------=_NextPart_000_0001_01D8D191.A9AC8AF0--