From 66c955648febf926ce4e4e238d7f19d171619f5f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 7 Jul 2021 02:12:07 +0300 Subject: cam: Move printing of camera information to CameraSession class The three CamApp functions listControls(), listProperties() and infoConfiguration() operate on a camera. They would thus be better placed in the CameraSession class. Move them there. As they now have no error to return anymore, make them void functions. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/cam/camera_session.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cam/camera_session.h') diff --git a/src/cam/camera_session.h b/src/cam/camera_session.h index 88baf906..6221aada 100644 --- a/src/cam/camera_session.h +++ b/src/cam/camera_session.h @@ -35,6 +35,10 @@ public: libcamera::Camera *camera() { return camera_.get(); } libcamera::CameraConfiguration *config() { return config_.get(); } + void listControls() const; + void listProperties() const; + void infoConfiguration() const; + int start(const OptionsParser::Options &options); void stop(); -- cgit v1.2.1