summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera_manager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libcamera/camera_manager.h b/include/libcamera/camera_manager.h
index b82a8ce9..4b941fd9 100644
--- a/include/libcamera/camera_manager.h
+++ b/include/libcamera/camera_manager.h
@@ -24,9 +24,11 @@ public:
int start();
void stop();
- std::vector<std::string> list() const;
+ const std::vector<Camera *> &cameras() const { return cameras_; }
Camera *get(const std::string &name);
+ void addCamera(Camera *camera);
+
static CameraManager *instance();
void setEventDispatcher(std::unique_ptr<EventDispatcher> dispatcher);
@@ -40,6 +42,7 @@ private:
std::unique_ptr<DeviceEnumerator> enumerator_;
std::vector<PipelineHandler *> pipes_;
+ std::vector<Camera *> cameras_;
std::unique_ptr<EventDispatcher> dispatcher_;
};