summaryrefslogtreecommitdiff
path: root/src/pa-sink-ctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pa-sink-ctl.h')
-rw-r--r--src/pa-sink-ctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pa-sink-ctl.h b/src/pa-sink-ctl.h
index d68401a..d8cd5bb 100644
--- a/src/pa-sink-ctl.h
+++ b/src/pa-sink-ctl.h
@@ -24,6 +24,8 @@
#include <pulse/pulseaudio.h>
#include <ncurses.h>
+#include "config.h"
+
struct context {
pa_context *context;
pa_operation *op;
@@ -49,6 +51,8 @@ struct context {
GList *input_list;
gchar *status;
+
+ struct config config;
};
void
@@ -57,4 +61,10 @@ quit(struct context *ctx);
void
change_callback(pa_context* c, gint success, gpointer);
+#define list_append_struct(list, data) \
+ do { \
+ (list) = g_list_append((list), \
+ g_memdup(&(data), sizeof(data))); \
+ } while (0)
+
#endif