libcamera: camera_manager: Add method to unregister a camera
The new removeCamera() method is meant to be used by pipeline handlers to unregister a camera in case of device disconnection. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -28,6 +28,7 @@ public:
|
||||
std::shared_ptr<Camera> get(const std::string &name);
|
||||
|
||||
void addCamera(std::shared_ptr<Camera> camera);
|
||||
void removeCamera(Camera *camera);
|
||||
|
||||
static CameraManager *instance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user