diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-06 00:49:38 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-22 17:13:07 +0300 |
commit | 12cb9293fa66ff64fcf9e1c970c0c07b3992d17a (patch) | |
tree | ed45211e55de71e20f0856c595d993468b7956ad /src | |
parent | ab4932f87dd363c04c70887d57f0e36a2a59c5a6 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/options.h | 4 |
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_; }; |