diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 16:05:38 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 16:05:38 +0100 |
commit | 27675c45d74167b08446e4d36425a1738c8e1609 (patch) | |
tree | ca7aede29cef46852951e4fe85bbebbcc20b122b /src/sink.h | |
parent | 2d4dcc93891570391a993fa151f0ef02997e2307 (diff) | |
download | pa-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |