diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 13:12:50 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 13:34:26 +0100 |
commit | 89b9e7e17893ceff2b8a238258d27c184ed07c64 (patch) | |
tree | 22e3ecc7a3c3e7e6e1dacd6653adbe9f991eda73 /src/sink.h | |
parent | 9e48ce1c7b87157921ce9dd695866073a8401899 (diff) | |
download | pa-sink-ctl-89b9e7e17893ceff2b8a238258d27c184ed07c64.tar.gz pa-sink-ctl-89b9e7e17893ceff2b8a238258d27c184ed07c64.tar.bz2 pa-sink-ctl-89b9e7e17893ceff2b8a238258d27c184ed07c64.zip |
Unify common sink(_input) properties to a base object
Diffstat (limited to 'src/sink.h')
-rw-r--r-- | src/sink.h | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -23,22 +23,25 @@ #include <glib.h> #include <pulse/pulseaudio.h> -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 |