diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-20 09:49:17 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-20 10:13:23 +0100 |
commit | 2922071f2c1fee46bdaf60a820345632d3162b16 (patch) | |
tree | df0eed8724a3e3596b0af5cb4e9842b59eadd66f /src/ctl.h | |
parent | caaddeaae7ec72cb65047aa72add993a4167d67b (diff) | |
download | pa-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |