From 2922071f2c1fee46bdaf60a820345632d3162b16 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 20 Dec 2011 09:49:17 +0100 Subject: Get rid of chooser_main_ctl and chooser_child Use a current_ctl pointer in struct interface instead. --- src/ctl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ctl.h') 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 -- cgit