ipa: Pass IPA initialization settings to IPAInterface::init()
Add a new IPASettings class to pass IPA initialization settings through the IPAInterface::init() method. The settings currently only contain the name of a configuration file, and are expected to be extended later. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
26a4b03ed8
commit
a6de903089
14 changed files with 82 additions and 21 deletions
|
@ -79,11 +79,15 @@ void *IPAInterfaceWrapper::get_interface(struct ipa_context *_ctx)
|
|||
return ctx->ipa_.get();
|
||||
}
|
||||
|
||||
void IPAInterfaceWrapper::init(struct ipa_context *_ctx)
|
||||
void IPAInterfaceWrapper::init(struct ipa_context *_ctx,
|
||||
const struct ipa_settings *settings)
|
||||
{
|
||||
IPAInterfaceWrapper *ctx = static_cast<IPAInterfaceWrapper *>(_ctx);
|
||||
|
||||
ctx->ipa_->init();
|
||||
IPASettings ipaSettings{
|
||||
.configurationFile = settings->configuration_file
|
||||
};
|
||||
ctx->ipa_->init(ipaSettings);
|
||||
}
|
||||
|
||||
int IPAInterfaceWrapper::start(struct ipa_context *_ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue