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>
This commit is contained in:
Laurent Pinchart
2021-07-06 00:49:38 +03:00
parent ab4932f87d
commit 12cb9293fa

View File

@@ -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_;
};