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:
parent
61f4920c71
commit
f02588f914
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue