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: fix node_{read,write}() interface for comedi and iec61850_sv

This commit is contained in:
Steffen Vogel 2018-07-16 20:16:59 +02:00
parent aac99d626e
commit 7c555ccb9c
4 changed files with 9 additions and 9 deletions

View file

@ -97,10 +97,10 @@ int comedi_start(struct node *n);
int comedi_stop(struct node *n);
/** @see node_type::read */
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt);
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
/** @see node_type::write */
int comedi_write(struct node *n, struct sample *smps[], unsigned cnt);
int comedi_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
/** @} */

View file

@ -95,9 +95,9 @@ int iec61850_sv_stop(struct node *n);
int iec61850_sv_destroy(struct node *n);
int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt);
int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *released);
int iec61850_sv_write(struct node *n, struct sample *smps[], unsigned cnt);
int iec61850_sv_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *released);
int iec61850_sv_fd(struct node *n);

View file

@ -525,7 +525,7 @@ int comedi_stop(struct node *n)
#if COMEDI_USE_READ
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt)
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release)
{
int ret;
struct comedi *c = (struct comedi *) n->_vd;
@ -648,7 +648,7 @@ int comedi_read(struct node *n, struct sample *smps[], unsigned cnt)
#else
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt)
int comedi_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release)
{
int ret;
struct comedi *c = (struct comedi *) n->_vd;
@ -833,7 +833,7 @@ int comedi_read(struct node *n, struct sample *smps[], unsigned cnt)
#endif
int comedi_write(struct node *n, struct sample *smps[], unsigned cnt)
int comedi_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release)
{
int ret;
struct comedi *c = (struct comedi *) n->_vd;

View file

@ -344,7 +344,7 @@ int iec61850_sv_destroy(struct node *n)
return 0;
}
int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt)
int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *released)
{
int pulled;
struct iec61850_sv *i = (struct iec61850_sv *) n->_vd;
@ -361,7 +361,7 @@ int iec61850_sv_read(struct node *n, struct sample *smps[], unsigned cnt)
return pulled;
}
int iec61850_sv_write(struct node *n, struct sample *smps[], unsigned cnt)
int iec61850_sv_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *released)
{
struct iec61850_sv *i = (struct iec61850_sv *) n->_vd;