From patchwork Fri May 1 02:34:27 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: 3642 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 2683361469 for ; Fri, 1 May 2020 04:34:43 +0200 (CEST) X-Halon-ID: 4f0d3510-8b54-11ea-89d0-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 4f0d3510-8b54-11ea-89d0-0050569116f7; Fri, 01 May 2020 04:34:41 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 1 May 2020 04:34:27 +0200 Message-Id: <20200501023432.90032-2-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501023432.90032-1-niklas.soderlund@ragnatech.se> References: <20200501023432.90032-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 1/6] 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: Fri, 01 May 2020 02:34:43 -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..ad5c93a4fabd089f 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: