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

Message ID 20200915142038.28757-15-paul.elder@ideasonboard.com
State Superseded
Headers show
Series
  • IPA isolation implementation
Related show

Commit Message

Paul Elder Sept. 15, 2020, 2:20 p.m. UTC
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@ideasonboard.com>
---
 include/libcamera/ipa/ipa_interface.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch

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__ */