diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-03-23 16:11:33 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-03-25 19:37:03 +0200 |
commit | 92cad298fb7d9c459ba96cf06aa8079557e8020f (patch) | |
tree | e456666ae50b22eb7215daedac26665b2d7b47e0 | |
parent | 02f56c5e5ecd5060f8ef583368e23f95e3a6fb86 (diff) |
libcamera: camera_manager: Document the CameraManager destructor
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@ideasonboard.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
-rw-r--r-- | src/libcamera/camera_manager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcamera/camera_manager.cpp b/src/libcamera/camera_manager.cpp index 67641a55..9e4d9c39 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(); |