summaryrefslogtreecommitdiff
path: root/src/cam/camera_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/camera_session.h')
-rw-r--r--src/cam/camera_session.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cam/camera_session.h b/src/cam/camera_session.h
index 39dbbdf3..88baf906 100644
--- a/src/cam/camera_session.h
+++ b/src/cam/camera_session.h
@@ -14,6 +14,7 @@
#include <libcamera/base/signal.h>
#include <libcamera/camera.h>
+#include <libcamera/camera_manager.h>
#include <libcamera/framebuffer.h>
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/request.h>
@@ -25,10 +26,13 @@
class CameraSession
{
public:
- CameraSession(std::shared_ptr<libcamera::Camera> camera,
+ CameraSession(libcamera::CameraManager *cm,
const OptionsParser::Options &options);
+ ~CameraSession();
bool isValid() const { return config_ != nullptr; }
+
+ libcamera::Camera *camera() { return camera_.get(); }
libcamera::CameraConfiguration *config() { return config_.get(); }
int start(const OptionsParser::Options &options);