From 068d95e1c28b0e20e692c5ecb24f044542e82ae9 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Sat, 8 Nov 2014 22:18:34 +0100 Subject: alsa: Use MateMixerStreamSwitch Also introduce alsa-types.h and move instance typedefs there to fix cross referencing introduced by this change --- backends/alsa/alsa-switch.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'backends/alsa/alsa-switch.h') diff --git a/backends/alsa/alsa-switch.h b/backends/alsa/alsa-switch.h index b7f5931..9ebf907 100644 --- a/backends/alsa/alsa-switch.h +++ b/backends/alsa/alsa-switch.h @@ -22,6 +22,8 @@ #include #include +#include "alsa-types.h" + G_BEGIN_DECLS #define ALSA_TYPE_SWITCH \ @@ -37,13 +39,12 @@ G_BEGIN_DECLS #define ALSA_SWITCH_GET_CLASS(o) \ (G_TYPE_INSTANCE_GET_CLASS ((o), ALSA_TYPE_SWITCH, AlsaSwitchClass)) -typedef struct _AlsaSwitch AlsaSwitch; typedef struct _AlsaSwitchClass AlsaSwitchClass; typedef struct _AlsaSwitchPrivate AlsaSwitchPrivate; struct _AlsaSwitch { - MateMixerSwitch parent; + MateMixerStreamSwitch parent; /*< private >*/ AlsaSwitchPrivate *priv; @@ -51,12 +52,13 @@ struct _AlsaSwitch struct _AlsaSwitchClass { - MateMixerSwitchClass parent_class; + MateMixerStreamSwitchClass parent_class; }; GType alsa_switch_get_type (void) G_GNUC_CONST; -AlsaSwitch *alsa_switch_new (const gchar *name, +AlsaSwitch *alsa_switch_new (AlsaStream *stream, + const gchar *name, const gchar *label, MateMixerSwitchRole role, GList *options); -- cgit v1.2.1