From 5df1089fdc67d1853b11edf3295b659c068c2ec8 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 20:38:49 +0100 Subject: Move interface related properties into new interface struct --- src/interface.h | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'src/interface.h') diff --git a/src/interface.h b/src/interface.h index 28f5276..da52be6 100644 --- a/src/interface.h +++ b/src/interface.h @@ -22,25 +22,44 @@ #include #include +#include #define SELECTED_SINK -1 #define H_MSG_BOX 3 -struct context; +struct interface { + WINDOW *menu_win; + WINDOW *msg_win; + gint volume_bar_len; + gchar *volume_bar; + + guint resize_source_id; +#ifdef HAVE_SIGNALFD + int signal_fd; +#endif + guint input_source_id; + + gint chooser_sink; + gint chooser_input; + + guint max_name_len; + + gchar *status; +}; struct vol_ctl * -interface_get_current_ctl(struct context *ctx, struct vol_ctl **parent); +interface_get_current_ctl(struct interface *ifc, struct vol_ctl **parent); void -interface_redraw(struct context *ctx); +interface_redraw(struct interface *ifc); int -interface_init(struct context *ctx); +interface_init(struct interface *ifc); void -interface_clear(struct context *ctx); +interface_clear(struct interface *ifc); void -interface_set_status(struct context *ctx, const gchar *, ...); +interface_set_status(struct interface *ifc, const gchar *, ...); #endif -- cgit