1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

super_node: add SuperNode::getState(), SuperNode::setState()

This commit is contained in:
Steffen Vogel 2019-02-11 16:38:20 +01:00
parent e2c8859d79
commit 401b955e24

View file

@ -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;