summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera.h4
-rw-r--r--include/libcamera/internal/camera.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index b081907e..05cdab72 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -78,7 +78,7 @@ class Camera final : public Object, public std::enable_shared_from_this<Camera>,
LIBCAMERA_DECLARE_PRIVATE()
public:
- static std::shared_ptr<Camera> create(PipelineHandler *pipe,
+ static std::shared_ptr<Camera> create(std::unique_ptr<Private> d,
const std::string &id,
const std::set<Stream *> &streams);
@@ -107,7 +107,7 @@ public:
private:
LIBCAMERA_DISABLE_COPY(Camera)
- Camera(PipelineHandler *pipe, const std::string &id,
+ Camera(std::unique_ptr<Private> d, const std::string &id,
const std::set<Stream *> &streams);
~Camera();
diff --git a/include/libcamera/internal/camera.h b/include/libcamera/internal/camera.h
index b60ed140..9ec8321a 100644
--- a/include/libcamera/internal/camera.h
+++ b/include/libcamera/internal/camera.h
@@ -26,8 +26,7 @@ class Camera::Private : public Extensible::Private
LIBCAMERA_DECLARE_PUBLIC(Camera)
public:
- Private(PipelineHandler *pipe, const std::string &id,
- const std::set<Stream *> &streams);
+ Private(PipelineHandler *pipe);
~Private();
private: