diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-07 02:12:07 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-22 17:13:53 +0300 |
commit | 66c955648febf926ce4e4e238d7f19d171619f5f (patch) | |
tree | 38b45be270a7a8e2c75c47d2bbfbc4566ee3809e /src/cam/camera_session.h | |
parent | 3d5093911396558b03b7f9815b3c467afc426f82 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/camera_session.h')
-rw-r--r-- | src/cam/camera_session.h | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |