[libcamera-devel] [PATCH 14/23] libcamera: IPAInterface: make ipaCreate return IPAInterface

Paul Elder paul.elder at ideasonboard.com
Tue Sep 15 16:20:29 CEST 2020


With the new IPC infrastructure, we no longer need the C interface as
provided by struct ipa_context. Make ipaCreate return IPAinterface.

Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
---
 include/libcamera/ipa/ipa_interface.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/libcamera/ipa/ipa_interface.h b/include/libcamera/ipa/ipa_interface.h
index cbe325ea..6efe2e99 100644
--- a/include/libcamera/ipa/ipa_interface.h
+++ b/include/libcamera/ipa/ipa_interface.h
@@ -110,8 +110,6 @@ struct ipa_context_ops {
 			      const struct ipa_operation_data *data);
 };
 
-struct ipa_context *ipaCreate();
-
 #ifdef __cplusplus
 }
 
@@ -154,6 +152,11 @@ public:
 };
 
 } /* namespace libcamera */
+
+extern "C" {
+libcamera::IPAInterface *ipaCreate();
+}
+
 #endif
 
 #endif /* __LIBCAMERA_IPA_INTERFACE_H__ */
-- 
2.27.0



More information about the libcamera-devel mailing list