summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index efafb9e2..a2ded62d 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -10,6 +10,8 @@
#include <memory>
#include <string>
+#include <libcamera/signal.h>
+
namespace libcamera {
class PipelineHandler;
@@ -25,10 +27,15 @@ public:
const std::string &name() const;
+ Signal<Camera *> disconnected;
+
private:
Camera(PipelineHandler *pipe, const std::string &name);
~Camera();
+ friend class PipelineHandler;
+ void disconnect();
+
std::shared_ptr<PipelineHandler> pipe_;
std::string name_;
};