mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
utils: add function to clean hook list
This commit is contained in:
parent
cd71b05fd0
commit
80967e88ad
1 changed files with 7 additions and 0 deletions
|
|
@ -112,6 +112,13 @@ static inline void spa_hook_remove(struct spa_hook *hook)
|
||||||
hook->removed(hook);
|
hook->removed(hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void spa_hook_list_clean(struct spa_hook_list *list)
|
||||||
|
{
|
||||||
|
struct spa_hook *h;
|
||||||
|
spa_list_consume(h, &list->list, link)
|
||||||
|
spa_hook_remove(h);
|
||||||
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
spa_hook_list_isolate(struct spa_hook_list *list,
|
spa_hook_list_isolate(struct spa_hook_list *list,
|
||||||
struct spa_hook_list *save,
|
struct spa_hook_list *save,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue