mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
nodes: properly initialize instance list
This commit is contained in:
parent
d2a2542866
commit
31dad7754e
2 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,6 @@ static pthread_t re_pthread;
|
|||
|
||||
using namespace villas::node;
|
||||
|
||||
/* Forward declarations */
|
||||
static struct plugin p;
|
||||
|
||||
static int rtp_set_rate(struct node *n, double rate)
|
||||
|
@ -670,6 +669,7 @@ static void register_plugin() {
|
|||
p.node.poll_fds = rtp_poll_fds;
|
||||
p.node.netem_fds = rtp_netem_fds;
|
||||
|
||||
vlist_init(&p.node.instances);
|
||||
vlist_push(&plugins, &p);
|
||||
}
|
||||
|
||||
|
|
|
@ -260,6 +260,7 @@ static void register_plugin() {
|
|||
p.name = "stats";
|
||||
p.description = "Send statistics to another node";
|
||||
p.type = PLUGIN_TYPE_NODE;
|
||||
p.node.instances.state = STATE_DESTROYED;
|
||||
p.node.vectorize = 1;
|
||||
p.node.flags = 0;
|
||||
p.node.size = sizeof(struct stats_node);
|
||||
|
@ -273,6 +274,7 @@ static void register_plugin() {
|
|||
p.node.read = stats_node_read;
|
||||
p.node.poll_fds = stats_node_poll_fds;
|
||||
|
||||
vlist_init(&p.node.instances);
|
||||
vlist_push(&plugins, &p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue