From 401b955e24baf585683ae0d6f59bf960f5fbc4d1 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 11 Feb 2019 16:38:20 +0100 Subject: [PATCH] super_node: add SuperNode::getState(), SuperNode::setState() --- include/villas/super_node.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/villas/super_node.hpp b/include/villas/super_node.hpp index 2e58d1d7a..81b415e8d 100644 --- a/include/villas/super_node.hpp +++ b/include/villas/super_node.hpp @@ -103,6 +103,11 @@ public: /** Run periodic hooks of this super node. */ int periodic(); + void setState(enum state st) + { + state = st; + } + struct node * getNode(const std::string &name) { return (struct node *) vlist_lookup(&nodes, name.c_str()); @@ -121,6 +126,10 @@ public: return &interfaces; } + enum state getState() { + return state; + } + #ifdef WITH_API Api * getApi() { return &api;