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:
parent
838d65ecee
commit
edec5e22dc
1 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue