summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera_manager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libcamera/camera_manager.h b/include/libcamera/camera_manager.h
index 95dc6360..9eb2b6f5 100644
--- a/include/libcamera/camera_manager.h
+++ b/include/libcamera/camera_manager.h
@@ -13,6 +13,7 @@
#include <vector>
#include <libcamera/object.h>
+#include <libcamera/signal.h>
namespace libcamera {
@@ -36,13 +37,16 @@ public:
void addCamera(std::shared_ptr<Camera> camera,
const std::vector<dev_t> &devnums);
- void removeCamera(Camera *camera);
+ void removeCamera(std::shared_ptr<Camera> camera);
static const std::string &version() { return version_; }
void setEventDispatcher(std::unique_ptr<EventDispatcher> dispatcher);
EventDispatcher *eventDispatcher();
+ Signal<std::shared_ptr<Camera>> cameraAdded;
+ Signal<std::shared_ptr<Camera>> cameraRemoved;
+
private:
static const std::string version_;
static CameraManager *self_;