summaryrefslogtreecommitdiff
path: root/src/sink.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 13:12:50 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 13:34:26 +0100
commit89b9e7e17893ceff2b8a238258d27c184ed07c64 (patch)
tree22e3ecc7a3c3e7e6e1dacd6653adbe9f991eda73 /src/sink.h
parent9e48ce1c7b87157921ce9dd695866073a8401899 (diff)
downloadpa-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.h19
1 files changed, 11 insertions, 8 deletions
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 <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