summaryrefslogtreecommitdiff
path: root/src/sink.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 16:05:38 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 16:05:38 +0100
commit27675c45d74167b08446e4d36425a1738c8e1609 (patch)
treeca7aede29cef46852951e4fe85bbebbcc20b122b /src/sink.h
parent2d4dcc93891570391a993fa151f0ef02997e2307 (diff)
downloadpa-sink-ctl-27675c45d74167b08446e4d36425a1738c8e1609.tar.gz
pa-sink-ctl-27675c45d74167b08446e4d36425a1738c8e1609.tar.bz2
pa-sink-ctl-27675c45d74167b08446e4d36425a1738c8e1609.zip
interface: Unify drawing code for sinks and inputs
They are drawn from the same function that calls itself recursiveley for childs of the currently drawn volume control. So its called for all sink_inputs that belong to a sink.
Diffstat (limited to 'src/sink.h')
-rw-r--r--src/sink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sink.h b/src/sink.h
index 26fe03a..04b4afa 100644
--- a/src/sink.h
+++ b/src/sink.h
@@ -33,17 +33,21 @@ struct vol_ctl {
gchar *name; /* displayed name */
gint indent; /* indentation when displayed */
+ gboolean hide_index;
pa_operation *(*mute_set)(pa_context *, guint32, int,
pa_context_success_cb_t, void *);
pa_operation *(*volume_set)(pa_context *, guint32, const pa_cvolume *,
pa_context_success_cb_t, gpointer);
+
+ void (*childs_foreach)(struct vol_ctl *ctx, GFunc func, gpointer udata);
};
struct sink_info {
struct vol_ctl base;
gint priority;
+ struct context *ctx;
};
struct sink_input_info {