Message ID | 20240223155954.4139705-2-kieran.bingham@ideasonboard.com |
---|---|
State | Superseded |
Headers | show |
Series |
|
Related | show |
diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h index 3ea1806cb1fd..dcdbe82b7ac9 100644 --- a/src/ipa/libipa/camera_sensor_helper.h +++ b/src/ipa/libipa/camera_sensor_helper.h @@ -68,6 +68,8 @@ public: static std::vector<CameraSensorHelperFactoryBase *> &factories(); + const std::string &name() const { return name_; }; + private: LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactoryBase)
Support the test suite iterating the factories by exposing a const retriever of the factory name. --- An alternative here is to just allow direct access to the createInstance() from the test too, without having to re-search all of the factories each time. But I felt this was less of a de-restriction of the existing interfaces. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> --- src/ipa/libipa/camera_sensor_helper.h | 2 ++ 1 file changed, 2 insertions(+)