From 27675c45d74167b08446e4d36425a1738c8e1609 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 16:05:38 +0100 Subject: 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. --- src/sink.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sink.h') 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 { -- cgit