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:
@@ -25,7 +25,7 @@ class IPAProxyThread : public IPAProxy, public Object
|
||||
public:
|
||||
IPAProxyThread(IPAModule *ipam);
|
||||
|
||||
int init() override;
|
||||
int init(const IPASettings &settings) override;
|
||||
int start() override;
|
||||
void stop() override;
|
||||
|
||||
@@ -97,9 +97,9 @@ IPAProxyThread::IPAProxyThread(IPAModule *ipam)
|
||||
valid_ = true;
|
||||
}
|
||||
|
||||
int IPAProxyThread::init()
|
||||
int IPAProxyThread::init(const IPASettings &settings)
|
||||
{
|
||||
int ret = ipa_->init();
|
||||
int ret = ipa_->init(settings);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user