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:
parent
9676a9535d
commit
f3f0f4d630
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue