summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/source-output.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-21 18:24:45 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-21 18:24:45 +0200
commit358824b330e20b9e6472fdefc4613e03b20c9abb (patch)
treeb852559702e728644ab18727e0e7a99b379a1244 /src/pulsecore/source-output.h
parent309bc71f07bdb00ecf050d7a4b1734accafcb95f (diff)
add new virtual function may_move_to to sink inputs/source outputs to allow modules to forbid certain connections
Diffstat (limited to 'src/pulsecore/source-output.h')
-rw-r--r--src/pulsecore/source-output.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pulsecore/source-output.h b/src/pulsecore/source-output.h
index a7aac814..6ae10c62 100644
--- a/src/pulsecore/source-output.h
+++ b/src/pulsecore/source-output.h
@@ -126,10 +126,15 @@ struct pa_source_output {
returns */
pa_usec_t (*get_latency) (pa_source_output *o); /* may be NULL */
- /* If non_NULL this function is called from thread context if the
+ /* If non-NULL this function is called from thread context if the
* state changes. The old state is found in thread_info.state. */
void (*state_change) (pa_source_output *o, pa_source_output_state_t state); /* may be NULL */
+ /* If non-NULL this function is called before this source output
+ * is moved to a source and if it returns FALSE the move
+ * will not be allowed */
+ pa_bool_t (*may_move_to) (pa_source_output *o, pa_source *s); /* may be NULL */
+
struct {
pa_source_output_state_t state;
@@ -220,6 +225,7 @@ pa_usec_t pa_source_output_get_latency(pa_source_output *i, pa_usec_t *source_la
pa_resample_method_t pa_source_output_get_resample_method(pa_source_output *o);
+pa_bool_t pa_source_output_may_move_to(pa_source_output *o, pa_source *dest);
int pa_source_output_move_to(pa_source_output *o, pa_source *dest);
#define pa_source_output_get_state(o) ((o)->state)