summaryrefslogtreecommitdiff
path: root/src/ctl.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-20 09:49:17 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-20 10:13:23 +0100
commit2922071f2c1fee46bdaf60a820345632d3162b16 (patch)
treedf0eed8724a3e3596b0af5cb4e9842b59eadd66f /src/ctl.h
parentcaaddeaae7ec72cb65047aa72add993a4167d67b (diff)
downloadpa-sink-ctl-2922071f2c1fee46bdaf60a820345632d3162b16.tar.gz
pa-sink-ctl-2922071f2c1fee46bdaf60a820345632d3162b16.tar.bz2
pa-sink-ctl-2922071f2c1fee46bdaf60a820345632d3162b16.zip
Get rid of chooser_main_ctl and chooser_child
Use a current_ctl pointer in struct interface instead.
Diffstat (limited to 'src/ctl.h')
-rw-r--r--src/ctl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctl.h b/src/ctl.h
index bb9ffda..e9ef304 100644
--- a/src/ctl.h
+++ b/src/ctl.h
@@ -43,6 +43,11 @@ struct vol_ctl {
void (*childs_foreach)(struct vol_ctl *ctl, GFunc func, gpointer udata);
gint (*childs_len)(struct vol_ctl *ctl);
+ struct vol_ctl *(*get_nth_child)(struct vol_ctl *ctl, int n);
+ struct vol_ctl *(*get_parent)(struct vol_ctl *ctl);
+
+ struct vol_ctl *(*prev_ctl)(struct vol_ctl *ctl);
+ struct vol_ctl *(*next_ctl)(struct vol_ctl *ctl);
};
struct main_ctl {
@@ -50,6 +55,7 @@ struct main_ctl {
gint priority;
GList **childs_list;
+ GList **list;
pa_operation *(*move_child)(pa_context *, guint32 idx, guint32 parent_idx,
pa_context_success_cb_t, gpointer);
@@ -58,6 +64,8 @@ struct main_ctl {
struct slave_ctl {
struct vol_ctl base;
guint32 parent_index;
+ GList **parent_list;
+ GList **list;
};
#endif