add pa_hook_is_firing

This commit is contained in:
Lennart Poettering 2009-03-21 01:18:48 +01:00
parent f5c8990d18
commit 20488fbe3e
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -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_bool_t pa_hook_is_firing(pa_hook *hook);
#endif