ipa: Declare the ipaCreate() function prototype

IPA modules have to implement a public ipaCreate() function, but its
prototype isn't declared in any header file. This allows for modules to
get the prototype wrong without being warned by the compiler. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-10-22 19:18:09 +03:00
parent 132d99bc8f
commit 8162ac1647
2 changed files with 12 additions and 0 deletions

View File

@@ -80,6 +80,8 @@ struct ipa_context_ops {
const struct ipa_operation_data *data);
};
struct ipa_context *ipaCreate();
#ifdef __cplusplus
}

View File

@@ -261,6 +261,16 @@
* \sa libcamera::IPAInterface::processEvent()
*/
/**
* \fn ipaCreate()
* \brief Entry point to the IPA modules
*
* This function is the entry point to the IPA modules. It is implemented by
* every IPA module, and called by libcamera to create a new IPA context.
*
* \return A newly created IPA context
*/
namespace libcamera {
/**