summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/hook-list.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-21 01:18:48 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-21 01:18:48 +0100
commit20488fbe3ed068d095d637763555e37af8d16322 (patch)
tree863868cc44251d18b71ba2ff3f5e1524feda2f44 /src/pulsecore/hook-list.c
parentf5c8990d1868f30ed3c13945f7bedb83e2093c11 (diff)
add pa_hook_is_firing
Diffstat (limited to 'src/pulsecore/hook-list.c')
-rw-r--r--src/pulsecore/hook-list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/hook-list.c b/src/pulsecore/hook-list.c
index 5f7a8665..a00116d1 100644
--- a/src/pulsecore/hook-list.c
+++ b/src/pulsecore/hook-list.c
@@ -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;
+}