@@ -197,6 +197,9 @@ int CamApp::parseOptions(int argc, char *argv[])
parser.addOption(OptStrictFormats, OptionNone,
"Do not allow requested stream format(s) to be adjusted",
"strict-formats");
+ parser.addOption(OptMetadata, OptionNone,
+ "Print the list of metadata associated with each completed capture request",
+ "metadata");
options_ = parser.parse(argc, argv);
if (!options_.valid())
@@ -19,6 +19,7 @@ enum {
OptStream = 's',
OptListControls = 256,
OptStrictFormats = 257,
+ OptMetadata = 258,
};
#endif /* __CAM_MAIN_H__ */
Add the "--metadata" option to the cam tool, which will be used to print the metadata associated with a completed capture request. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- src/cam/main.cpp | 3 +++ src/cam/main.h | 1 + 2 files changed, 4 insertions(+)