global: keep track of child globals

Keep track of the child globals and unregister when the parent
is unregistered.
This commit is contained in:
Wim Taymans 2019-05-14 12:00:22 +02:00
parent b474666e2e
commit d39d15b0d9
2 changed files with 17 additions and 3 deletions

View file

@ -146,6 +146,8 @@ struct pw_global {
struct spa_list link; /**< link in core list of globals */
uint32_t id; /**< server id of the object */
struct pw_global *parent; /**< parent global */
struct spa_list child_link; /**< link in parent child list of globals */
struct spa_list child_list; /**< The list of child globals */
struct pw_properties *properties; /**< properties of the global */