diff --git a/include/villas/node.h b/include/villas/node.h index f4b35dc1b..f620f2ea8 100644 --- a/include/villas/node.h +++ b/include/villas/node.h @@ -198,9 +198,13 @@ struct vlist * node_input_signals(struct vnode *n); */ int node_reverse(struct vnode *n); -int node_read(struct vnode *n, struct sample * smps[], unsigned cnt); +int node_read(struct vnode *n, struct sample *smps[], unsigned cnt); -int node_write(struct vnode *n, struct sample * smps[], unsigned cnt, bool clone_if_modified = false); +int node_write(struct vnode *n, struct sample *smps[], unsigned cnt); + +int node_read(struct vnode *n, struct sample *smp); + +int node_write(struct vnode *n, struct sample *smp); int node_poll_fds(struct vnode *n, int fds[]); diff --git a/lib/node.cpp b/lib/node.cpp index ffc55c53a..b10a5b11a 100644 --- a/lib/node.cpp +++ b/lib/node.cpp @@ -721,3 +721,13 @@ json_t * node_to_json(struct vnode *n) return json_node; } + +int node_read(struct vnode *n, struct sample *smp) +{ + return node_read(n, &smp, 1); +} + +int node_write(struct vnode *n, struct sample *smp) +{ + return node_write(n, &smp, 1); +} diff --git a/src/villas-test-rtt.cpp b/src/villas-test-rtt.cpp index fa806e2ae..ccf64f2ec 100644 --- a/src/villas-test-rtt.cpp +++ b/src/villas-test-rtt.cpp @@ -206,8 +206,8 @@ check: if (optarg == endptr) while (!stop && (count < 0 || count--)) { clock_gettime(CLOCK_ID, &send); - node_write(node, &smp_send, 1); /* Ping */ - node_read(node, &smp_recv, 1); /* Pong */ + node_write(node, smp_send); /* Ping */ + node_read(node, smp_recv); /* Pong */ clock_gettime(CLOCK_ID, &recv);