[libcamera-devel] [PATCH] libcamera: camera_manager: Document the CameraManager destructor
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue Mar 23 15:16:31 CET 2021
The destructor stops the camera manager if it is running. This is at the
moment an implementation detail, but makes sense to guarantee in the
API. Document it.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/camera_manager.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/libcamera/camera_manager.cpp b/src/libcamera/camera_manager.cpp
index 67641a555e1e..9e4d9c391f09 100644
--- a/src/libcamera/camera_manager.cpp
+++ b/src/libcamera/camera_manager.cpp
@@ -269,6 +269,11 @@ CameraManager::CameraManager()
self_ = this;
}
+/**
+ * \brief Destroy the camera manager
+ *
+ * Destroying the camera manager stops it if it is currently running.
+ */
CameraManager::~CameraManager()
{
stop();
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list