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

path: added signal list

This commit is contained in:
Steffen Vogel 2018-08-02 10:52:26 +02:00
parent 1ada9d10d9
commit 2361964de1
2 changed files with 3 additions and 0 deletions

View file

@ -89,6 +89,7 @@ struct path {
struct list sources; /**< List of all incoming nodes (struct path_source). */
struct list destinations; /**< List of all outgoing nodes (struct path_destination). */
struct list hooks; /**< List of processing hooks (struct hook). */
struct list signals; /**< List of signals which this path creates (struct signal). */
struct task timeout;

View file

@ -302,6 +302,7 @@ int path_init(struct path *p)
list_init(&p->destinations);
list_init(&p->sources);
list_init(&p->signals);
p->_name = NULL;
@ -794,6 +795,7 @@ int path_destroy(struct path *p)
#endif
list_destroy(&p->sources, (dtor_cb_t) path_source_destroy, true);
list_destroy(&p->destinations, (dtor_cb_t) path_destination_destroy, true);
list_destroy(&p->signals, (dtor_cb_t) signal_destroy, true);
if (p->reader.pfds)
free(p->reader.pfds);