[1/3] ipa: libipa: Allow retrieving the name of a CameraSensorHelperFactory
diff mbox series

Message ID 20240223155954.4139705-2-kieran.bingham@ideasonboard.com
State New
Headers show
Series
  • libipa: Fix CameraSensorHelper gain helpers
Related show

Commit Message

Kieran Bingham Feb. 23, 2024, 3:59 p.m. UTC
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(+)

Patch
diff mbox series

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)