summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-13 16:19:56 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-13 16:19:56 +0000
commita621d9028548723d13df64df06a4f4538504e7a3 (patch)
treeb488b3488a11516b3c594cc2c805d693a5d6c938 /src/pulsecore/core.c
parentb5cbea940ea70b8ed92fa3be6b742e8a14897337 (diff)
allow hooking into the process of creating playback streams. To implement this I modified the pa_sink_input_new() signature to take a pa_sink_input_new_data structure instead of direct arguments.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1237 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/core.c')
-rw-r--r--src/pulsecore/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c
index 710e00ad..24f835f7 100644
--- a/src/pulsecore/core.c
+++ b/src/pulsecore/core.c
@@ -92,6 +92,9 @@ pa_core* pa_core_new(pa_mainloop_api *m) {
c->is_system_instance = 0;
+ pa_hook_init(&c->hook_sink_input_new, c);
+ pa_hook_init(&c->hook_sink_input_disconnect, c);
+
pa_property_init(c);
pa_random(&c->cookie, sizeof(c->cookie));
@@ -137,6 +140,9 @@ void pa_core_free(pa_core *c) {
pa_memblock_stat_unref(c->memblock_stat);
pa_property_cleanup(c);
+
+ pa_hook_free(&c->hook_sink_input_new);
+ pa_hook_free(&c->hook_sink_input_disconnect);
pa_xfree(c);
}