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:
parent
0406c46bb4
commit
9116fda00b
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue