diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-13 16:19:56 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-08-13 16:19:56 +0000 |
commit | a621d9028548723d13df64df06a4f4538504e7a3 (patch) | |
tree | b488b3488a11516b3c594cc2c805d693a5d6c938 /src/pulsecore/core.h | |
parent | b5cbea940ea70b8ed92fa3be6b742e8a14897337 (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.h')
-rw-r--r-- | src/pulsecore/core.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index 391ba9b8..fd92de61 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -22,17 +22,21 @@ USA. ***/ -typedef struct pa_core pa_core; - #include <pulse/mainloop-api.h> #include <pulse/sample.h> + #include <pulsecore/idxset.h> #include <pulsecore/hashmap.h> #include <pulsecore/memblock.h> #include <pulsecore/resampler.h> #include <pulsecore/queue.h> -#include <pulsecore/core-subscribe.h> #include <pulsecore/llist.h> +#include <pulsecore/hook-list.h> + +typedef struct pa_core pa_core; + +#include <pulsecore/core-subscribe.h> +#include <pulsecore/sink-input.h> /* The core structure of PulseAudio. Every PulseAudio daemon contains * exactly one of these. It is used for storing kind of global @@ -75,6 +79,9 @@ struct pa_core { pa_resample_method_t resample_method; int is_system_instance; + + /* hooks */ + pa_hook hook_sink_input_new, hook_sink_input_disconnect; }; pa_core* pa_core_new(pa_mainloop_api *m); |