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:
parent
e2c8859d79
commit
401b955e24
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue