From f73efabd182181daee00a35a7a612430e0817d23 Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Fri, 30 Jun 2023 11:30:05 +0200 Subject: [PATCH] Adapt fpga node to changed uuid passing Signed-off-by: Philipp Jungkamp --- include/villas/nodes/fpga.hpp | 6 +++--- lib/nodes/fpga.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/villas/nodes/fpga.hpp b/include/villas/nodes/fpga.hpp index 97c6c52ff..e03f36e20 100644 --- a/include/villas/nodes/fpga.hpp +++ b/include/villas/nodes/fpga.hpp @@ -51,7 +51,7 @@ protected: int _write(Sample *smps[], unsigned cnt); public: - FpgaNode(const std::string &name = ""); + FpgaNode(const uuid_t &id = {}, const std::string &name = ""); virtual ~FpgaNode(); @@ -79,9 +79,9 @@ public: using NodeFactory::NodeFactory; virtual - Node * make() + Node * make(const uuid_t &id = {}, const std::string &nme = "") { - auto *n = new FpgaNode; + auto *n = new FpgaNode(id, nme); init(n); diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index b83e7ce84..1462e7468 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -42,8 +42,8 @@ static std::shared_ptr vfioContainer; using namespace villas; using namespace villas::node; -FpgaNode::FpgaNode(const std::string &name) : - Node(name), +FpgaNode::FpgaNode(const uuid_t &id, const std::string &name) : + Node(id, name), irqFd(-1), coalesce(0), polling(true)