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

node, path: add getters for signals

This commit is contained in:
Steffen Vogel 2019-03-08 15:21:01 +01:00
parent af99a50786
commit 3bab0c9c06
4 changed files with 13 additions and 0 deletions

View file

@ -202,6 +202,7 @@ bool node_is_valid_name(const char *name);
bool node_is_enabled(const struct node *n);
struct vlist * node_get_signals(struct node *n, enum node_dir dir);
#ifdef __cplusplus
}

View file

@ -163,6 +163,8 @@ bool path_is_enabled(const struct path *p);
bool path_is_reversed(const struct path *p);
struct vlist * path_get_signals(struct path *p);
/** @} */
#ifdef __cplusplus

View file

@ -613,4 +613,9 @@ bool node_is_enabled(const struct node *n)
return n->enabled;
}
struct vlist * node_get_signals(struct node *n, enum node_dir dir)
{
struct node_direction *nd = dir == NODE_DIR_IN ? &n->in : &n->out;
return node_direction_get_signals(nd);
}

View file

@ -754,3 +754,8 @@ bool path_is_reversed(const struct path *p)
{
return p->reverse;
}
struct vlist * path_get_signals(struct path *p)
{
return &p->signals;
}