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

uldaq: added uldaq_destroy()

This commit is contained in:
Steffen Vogel 2018-09-25 10:04:42 +02:00
parent 838d65ecee
commit edec5e22dc

View file

@ -97,6 +97,16 @@ int uldaq_init(struct node *n)
u->in.flags = AINSCAN_FF_DEFAULT;
}
int uldaq_destroy(struct node *n)
{
struct uldaq *u = (struct uldaq *) n->_vd;
if (u->in.queues)
free(u->in.queues);
return 0;
}
int uldaq_parse(struct node *n, json_t *cfg)
{
int ret;
@ -266,6 +276,7 @@ static struct plugin p = {
.size = sizeof(struct uldaq),
.parse = uldaq_parse,
.init = uldaq_init,
.destroy= uldaq_destroy,
.parse = uldaq_parse,
.print = uldaq_print,
.start = uldaq_start,