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;