mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add pa_hook_is_firing
This commit is contained in:
parent
f5c8990d18
commit
20488fbe3e
2 changed files with 8 additions and 0 deletions
|
|
@ -121,3 +121,9 @@ pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data) {
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
pa_bool_t pa_hook_is_firing(pa_hook *hook) {
|
||||
pa_assert(hook);
|
||||
|
||||
return hook->n_firing > 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue