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:
Laurent Pinchart 2020-04-27 02:36:18 +03:00
parent 26a4b03ed8
commit a6de903089
14 changed files with 82 additions and 21 deletions

View file

@ -31,7 +31,7 @@ public:
IPAVimc();
~IPAVimc();
int init() override;
int init(const IPASettings &settings) override;
int start() override;
void stop() override;
@ -61,7 +61,7 @@ IPAVimc::~IPAVimc()
::close(fd_);
}
int IPAVimc::init()
int IPAVimc::init(const IPASettings &settings)
{
trace(IPAOperationInit);