[libcamera-devel] [PATCH v3 1/6] cam: options: Make KeyValueParser::parse() virtual
Niklas Söderlund
niklas.soderlund at ragnatech.se
Fri May 1 04:34:27 CEST 2020
Prepare for sub-classing of the KeyValueParser by making the parse()
method virtual.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
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:
--
2.26.2
More information about the libcamera-devel
mailing list