diff --git a/include/villas/nodes/webrtc.hpp b/include/villas/nodes/webrtc.hpp index 1776d44ca..be853494b 100644 --- a/include/villas/nodes/webrtc.hpp +++ b/include/villas/nodes/webrtc.hpp @@ -62,9 +62,6 @@ public: virtual int parse(json_t *json); - virtual - int check(); - virtual int start(); diff --git a/lib/nodes/webrtc.cpp b/lib/nodes/webrtc.cpp index 54bdae980..49592da85 100644 --- a/lib/nodes/webrtc.cpp +++ b/lib/nodes/webrtc.cpp @@ -123,11 +123,6 @@ int WebRTCNode::parse(json_t *json) return 0; } -int WebRTCNode::check() -{ - return Node::check(); -} - int WebRTCNode::prepare() { int ret = Node::prepare(); @@ -149,6 +144,7 @@ int WebRTCNode::prepare() if (ret) // TODO log return ret; + // TODO: Move this to a member function conn->onMessage([this](rtc::binary msg){ int ret; std::vector smps; @@ -204,6 +200,7 @@ std::vector WebRTCNode::getPollFDs() const std::string & WebRTCNode::getDetails() { + // TODO details = fmt::format(""); return details; } @@ -237,6 +234,14 @@ int WebRTCNode::_write(struct Sample *smps[], unsigned cnt) return ret; } +json_t * WebRTCNode::_readStatus() +{ + if (!conn) + return nullptr; + + return conn->readStatus(); +} + int WebRTCNodeFactory::start(SuperNode *sn) { web = sn->getWeb();