From 68d2c41835a871ecd7b441cd650cab3fefa88cf5 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 21 Sep 2020 04:06:34 +0300 Subject: libcamera: camera: Inherit from Extensible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the d-pointer infrastructure offered by the Extensible class to replace the custom implementation. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/camera.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/libcamera/camera.h') diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h index 79ff8d6b..5c5f1a05 100644 --- a/include/libcamera/camera.h +++ b/include/libcamera/camera.h @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -70,8 +71,11 @@ protected: std::vector config_; }; -class Camera final : public Object, public std::enable_shared_from_this +class Camera final : public Object, public std::enable_shared_from_this, + public Extensible { + LIBCAMERA_DECLARE_PRIVATE(Camera) + public: static std::shared_ptr create(PipelineHandler *pipe, const std::string &id, @@ -107,9 +111,6 @@ private: const std::set &streams); ~Camera(); - class Private; - std::unique_ptr p_; - friend class PipelineHandler; void disconnect(); void requestComplete(Request *request); -- cgit v1.2.1