summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-04-27 14:58:31 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-01 12:24:07 +0200
commite66d4f382317c1339cc46071f558affd1582062b (patch)
tree8895785fde1c795650be348990f49a09943b43c3 /src
parentf703aa0600b8160653a226acf396b8a7ee1f043f (diff)
cam: options: Make KeyValueParser::parse() virtual
Prepare for sub-classing of the KeyValueParser by making the parse() method virtual. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/cam/options.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cam/options.h b/src/cam/options.h
index 5e346b47..ad5c93a4 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: