summaryrefslogtreecommitdiff
path: root/src/interface.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 20:38:49 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 20:46:24 +0100
commit5df1089fdc67d1853b11edf3295b659c068c2ec8 (patch)
tree03211a3c9ff617d9464de84da194e4d0bff98a16 /src/interface.h
parent6c177cfa63af0433da3b17a3c85aab9dc52aefda (diff)
downloadpa-sink-ctl-5df1089fdc67d1853b11edf3295b659c068c2ec8.tar.gz
pa-sink-ctl-5df1089fdc67d1853b11edf3295b659c068c2ec8.tar.bz2
pa-sink-ctl-5df1089fdc67d1853b11edf3295b659c068c2ec8.zip
Move interface related properties into new interface struct
Diffstat (limited to 'src/interface.h')
-rw-r--r--src/interface.h31
1 files changed, 25 insertions, 6 deletions
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 <glib.h>
#include <pulse/pulseaudio.h>
+#include <ncurses.h>
#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