From 89b9e7e17893ceff2b8a238258d27c184ed07c64 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 13:12:50 +0100 Subject: Unify common sink(_input) properties to a base object --- src/sink.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/sink.h') diff --git a/src/sink.h b/src/sink.h index 304e3fc..8c0c33d 100644 --- a/src/sink.h +++ b/src/sink.h @@ -23,22 +23,25 @@ #include #include -struct sink_info { +struct context; + +struct vol_ctl_object { guint32 index; - gchar* name; + pa_volume_t vol; // TOTO: exchange with the channel-list gint mute; guint8 channels; - pa_volume_t vol; + + gchar *name; /* displayed name */ +}; + +struct sink_info { + struct vol_ctl_object base; gint priority; }; struct sink_input_info { - guint32 index; + struct vol_ctl_object base; guint32 sink; - gchar *name; - gint mute; - guint8 channels; - pa_volume_t vol; // TOTO: exchange with the channel-list }; #endif -- cgit