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

add node_type() function to get pointer to node_type of a node instance

This commit is contained in:
Steffen Vogel 2018-07-16 08:29:10 +02:00
parent 0406c46bb4
commit 9116fda00b

View file

@ -160,6 +160,13 @@ int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re
int node_fd(struct node *n);
struct node_type * node_type(struct node *n);
{
assert(n->type == STATE_INITIALIZED);
return n->_vt;
}
struct memory_type * node_memory_type(struct node *n, struct memory_type *parent);
#ifdef __cplusplus