1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

lib/ip: pass ip core by reference to factory instead of unique_ptr

This commit is contained in:
daniel-k 2017-12-21 21:19:52 +01:00
parent 9676a9535d
commit f3f0f4d630
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ private:
virtual IpCore* create() = 0;
/// Configure IP instance from JSON config
virtual bool configureJson(const std::unique_ptr<IpCore>& ip, json_t *json)
virtual bool configureJson(IpCore& ip, json_t *json)
{ return true; }
virtual Vlnv getCompatibleVlnv() const = 0;

View file

@ -263,7 +263,7 @@ IpCoreFactory::make(PCIeCard* card, json_t *json_ips)
}
// IP-specific setup via JSON config
ipCoreFactory->configureJson(ip, json_ip);
ipCoreFactory->configureJson(*ip, json_ip);
// TODO: currently fails, fix and remove comment
// if(not ip->start()) {