summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera_manager.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libcamera/camera_manager.h b/include/libcamera/camera_manager.h
index 2768a5bd..e14da0f8 100644
--- a/include/libcamera/camera_manager.h
+++ b/include/libcamera/camera_manager.h
@@ -19,15 +19,19 @@ class PipelineHandler;
class CameraManager
{
public:
- CameraManager();
-
int start();
void stop();
std::vector<std::string> list() const;
Camera *get(const std::string &name);
+ static CameraManager *instance();
+
private:
+ CameraManager();
+ CameraManager(const CameraManager &) = delete;
+ void operator=(const CameraManager &) = delete;
+
DeviceEnumerator *enumerator_;
std::vector<PipelineHandler *> pipes_;
};