From 640d317df93f205d5830b9f7b106233ddb6d2f9e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Jan 2009 22:40:02 +0100 Subject: add functions to move all inputs of a sink away/similar for source outputs --- src/pulsecore/sink.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pulsecore/sink.h') diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h index 89ed6d4d..a30245d9 100644 --- a/src/pulsecore/sink.h +++ b/src/pulsecore/sink.h @@ -40,6 +40,7 @@ typedef struct pa_sink pa_sink; #include #include #include +#include #define PA_MAX_INPUTS_PER_SINK 32 @@ -254,6 +255,11 @@ unsigned pa_sink_used_by(pa_sink *s); /* Number of connected streams which are n unsigned pa_sink_check_suspend(pa_sink *s); /* Returns how many streams are active that don't allow suspensions */ #define pa_sink_get_state(s) ((s)->state) +/* Moves all inputs away, and stores them in pa_queue */ +pa_queue *pa_sink_move_all_start(pa_sink *s); +void pa_sink_move_all_finish(pa_sink *s, pa_queue *q); +void pa_sink_move_all_fail(pa_queue *q); + /* To be called exclusively by the sink driver, from IO context */ void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result); -- cgit