From patchwork Mon Apr 27 22:05:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 3578 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EE1F460AFA for ; Tue, 28 Apr 2020 00:06:16 +0200 (CEST) X-Halon-ID: 40684680-88d3-11ea-b7d8-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 40684680-88d3-11ea-b7d8-005056917a89; Tue, 28 Apr 2020 00:05:48 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 28 Apr 2020 00:05:25 +0200 Message-Id: <20200427220529.1085074-2-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200427220529.1085074-1-niklas.soderlund@ragnatech.se> References: <20200427220529.1085074-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 1/5] cam: options: Make KeyValueParser::parse() virtual 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: , X-List-Received-Date: Mon, 27 Apr 2020 22:06:17 -0000 Prepare for sub-classing of the KeyValueParser by making the parse() method virtual. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- 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 5e346b474f765841..5060fee0c26b896f 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -71,10 +71,12 @@ public: { }; + virtual ~KeyValueParser(){}; + bool addOption(const char *name, OptionType type, const char *help, OptionArgument argument = ArgumentNone); - Options parse(const char *arguments); + virtual Options parse(const char *arguments); void usage(int indent); private: