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: add node_prepare()

This commit is contained in:
Steffen Vogel 2019-03-15 17:19:28 +01:00
parent 61f4920c71
commit f02588f914
2 changed files with 6 additions and 0 deletions

View file

@ -111,6 +111,8 @@ struct node_type {
*/
int (*check)(struct node *n);
int (*prepare)(struct node *);
/** Returns a string with a textual represenation of this node.
*
* @param n A pointer to the node object.

View file

@ -90,6 +90,10 @@ int node_prepare(struct node *n)
assert(n->state == STATE_CHECKED);
ret = node_type(n)->prepare ? node_type(n)->prepare(n) : 0;
if (ret)
return ret;
ret = node_direction_prepare(&n->in, n);
if (ret)
return ret;