From patchwork Wed Jul 7 02:19:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12813 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B3245BD794 for ; Wed, 7 Jul 2021 02:20:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 97C3068502; Wed, 7 Jul 2021 04:20:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="gqQ4N7fq"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F3EC2684F3 for ; Wed, 7 Jul 2021 04:20:31 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 71C4F466 for ; Wed, 7 Jul 2021 04:20:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1625624431; bh=SnTqONontDQzPpro/4rmr4LoTfXomYyhWLtVcIeieSc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gqQ4N7fqg84M4vWpvVVo0BA7j/8AiRi+ZMiZKrr3P2VbIH2L67AVt1RVRS350mFsq 5M8RJ7kFJPTlcLZrdjzZOaA42bu3N+INm+onwKg5SHmuvjFieoIwoqD5ZWPI5Co94K XCX4CaKZrX7HuPU2FCIqrx2/IKPfVraE2FA7aoP8= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 7 Jul 2021 05:19:12 +0300 Message-Id: <20210707021941.20804-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210707021941.20804-1-laurent.pinchart@ideasonboard.com> References: <20210707021941.20804-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 01/30] cam: options: Make KeyValueParser::usage() private X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The KeyValueParser::usage() function is meant to be called from an OptionsParser or another KeyValueParser only. Make it private, and set the OptionsParser class as a friend of the KeyValueParser class. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/cam/options.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cam/options.h b/src/cam/options.h index f02eeca2eef9..d0defb4bd665 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -79,9 +79,11 @@ public: OptionArgument argument = ArgumentNone); virtual Options parse(const char *arguments); + +private: + friend class OptionsParser; void usage(int indent); -private: std::map optionsMap_; };