libcamera: CameraManager: Remove ::get(dev_t)
The CameraManager::get(dev_t) implementation was provided only for the V4L2 Adaptation layer. This has now been replaced with the use of the public SystemDevices property. Remove the deprecated function entirely, along with the camerasByDevnum_ map which was only used to support this functionality. This is a clear (and intentional) breakage in both the API and ABI. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -32,7 +32,6 @@ public:
|
||||
|
||||
std::vector<std::shared_ptr<Camera>> cameras() const;
|
||||
std::shared_ptr<Camera> get(const std::string &id);
|
||||
std::shared_ptr<Camera> get(dev_t devnum);
|
||||
|
||||
static const std::string &version() { return version_; }
|
||||
|
||||
|
||||
@@ -50,11 +50,10 @@ private:
|
||||
* This mutex protects
|
||||
*
|
||||
* - initialized_ and status_ during initialization
|
||||
* - cameras_ and camerasByDevnum_ after initialization
|
||||
* - cameras_ after initialization
|
||||
*/
|
||||
mutable Mutex mutex_;
|
||||
std::vector<std::shared_ptr<Camera>> cameras_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
|
||||
std::map<dev_t, std::weak_ptr<Camera>> camerasByDevnum_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
|
||||
|
||||
ConditionVariable cv_;
|
||||
bool initialized_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
|
||||
|
||||
Reference in New Issue
Block a user