summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-06 00:49:38 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:13:07 +0300
commit12cb9293fa66ff64fcf9e1c970c0c07b3992d17a (patch)
treeed45211e55de71e20f0856c595d993468b7956ad
parentab4932f87dd363c04c70887d57f0e36a2a59c5a6 (diff)
cam: options: Make KeyValueParser::usage() private
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-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 f02eeca2..d0defb4b 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);
- void usage(int indent);
private:
+ friend class OptionsParser;
+ void usage(int indent);
+
std::map<std::string, Option> optionsMap_;
};