mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pa_bool_t pa_hook_is_firing(pa_hook *hook) {
|
||||||
|
pa_assert(hook);
|
||||||
|
|
||||||
|
return hook->n_firing > 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,4 +71,6 @@ void pa_hook_slot_free(pa_hook_slot *slot);
|
||||||
|
|
||||||
pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data);
|
pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data);
|
||||||
|
|
||||||
|
pa_bool_t pa_hook_is_firing(pa_hook *hook);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue