From dacdcf2516ef4520b0bb32fa34837381f65faf30 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 12 Dec 2011 21:11:19 +0100 Subject: Implement a priority based sink order assignment This is handsome when using udev based device discovery. --- src/pa-sink-ctl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/pa-sink-ctl.h') 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 #include +#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 -- cgit