libcamera: camera_manager: Inherit from Extensible

Use the d-pointer infrastructure offered by the Extensible class to
replace the custom implementation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2020-09-21 04:06:34 +03:00
parent 79c34d58c7
commit 549d982f61
2 changed files with 38 additions and 24 deletions

View File

@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <vector>
#include <libcamera/extensible.h>
#include <libcamera/object.h>
#include <libcamera/signal.h>
@@ -20,8 +21,9 @@ namespace libcamera {
class Camera;
class EventDispatcher;
class CameraManager : public Object
class CameraManager : public Object, public Extensible
{
LIBCAMERA_DECLARE_PRIVATE(CameraManager)
public:
CameraManager();
CameraManager(const CameraManager &) = delete;
@@ -50,9 +52,6 @@ public:
private:
static const std::string version_;
static CameraManager *self_;
class Private;
std::unique_ptr<Private> p_;
};
} /* namespace libcamera */