diff options
author | Michal Ratajsky <[email protected]> | 2014-08-18 20:49:17 +0200 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-08-18 20:49:17 +0200 |
commit | 5f20ab328add9442082277a57c23273a3a2125ed (patch) | |
tree | fb458ba63f25db35de6b5a9c9acf0f967020107f /backends/pulse/pulse-stream.h | |
parent | 94d24482d8b1013947c0e2dac7330180b6ae02f6 (diff) | |
download | libmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.bz2 libmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.xz |
Global update
Diffstat (limited to 'backends/pulse/pulse-stream.h')
-rw-r--r-- | backends/pulse/pulse-stream.h | 64 |
1 files changed, 8 insertions, 56 deletions
diff --git a/backends/pulse/pulse-stream.h b/backends/pulse/pulse-stream.h index e4c6a00..eafe457 100644 --- a/backends/pulse/pulse-stream.h +++ b/backends/pulse/pulse-stream.h @@ -20,15 +20,11 @@ #include <glib.h> #include <glib-object.h> - -#include <libmatemixer/matemixer-device.h> -#include <libmatemixer/matemixer-port.h> -#include <libmatemixer/matemixer-stream.h> +#include <libmatemixer/matemixer.h> #include <pulse/pulseaudio.h> -#include "pulse-connection.h" -#include "pulse-monitor.h" +#include "pulse-types.h" G_BEGIN_DECLS @@ -45,13 +41,12 @@ G_BEGIN_DECLS #define PULSE_STREAM_GET_CLASS(o) \ (G_TYPE_INSTANCE_GET_CLASS ((o), PULSE_TYPE_STREAM, PulseStreamClass)) -typedef struct _PulseStream PulseStream; typedef struct _PulseStreamClass PulseStreamClass; typedef struct _PulseStreamPrivate PulseStreamPrivate; struct _PulseStream { - GObject parent; + MateMixerStream parent; /*< private >*/ PulseStreamPrivate *priv; @@ -59,58 +54,15 @@ struct _PulseStream struct _PulseStreamClass { - GObjectClass parent_class; - - /*< private >*/ - /* Virtual table */ - void (*reload) (PulseStream *stream); - - gboolean (*set_mute) (PulseStream *stream, - gboolean mute); - gboolean (*set_volume) (PulseStream *stream, - pa_cvolume *volume); - - gboolean (*set_active_port) (PulseStream *stream, - MateMixerPort *port); - - gboolean (*suspend) (PulseStream *stream); - gboolean (*resume) (PulseStream *stream); - - PulseMonitor *(*create_monitor) (PulseStream *stream); + MateMixerStreamClass parent_class; }; -GType pulse_stream_get_type (void) G_GNUC_CONST; - -guint32 pulse_stream_get_index (PulseStream *pstream); -PulseConnection * pulse_stream_get_connection (PulseStream *pstream); -PulseMonitor * pulse_stream_get_monitor (PulseStream *pstream); -GHashTable * pulse_stream_get_ports (PulseStream *pstream); - -const pa_cvolume * pulse_stream_get_cvolume (PulseStream *pstream); -const pa_channel_map *pulse_stream_get_channel_map (PulseStream *pstream); - -gboolean pulse_stream_update_name (PulseStream *pstream, - const gchar *name); -gboolean pulse_stream_update_description (PulseStream *pstream, - const gchar *description); -gboolean pulse_stream_update_device (PulseStream *pstream, - MateMixerDevice *device); -gboolean pulse_stream_update_flags (PulseStream *pstream, - MateMixerStreamFlags flags); -gboolean pulse_stream_update_state (PulseStream *pstream, - MateMixerStreamState state); - -gboolean pulse_stream_update_channel_map (PulseStream *pstream, - const pa_channel_map *map); -gboolean pulse_stream_update_volume (PulseStream *pstream, - const pa_cvolume *volume, - pa_volume_t base_volume); +GType pulse_stream_get_type (void) G_GNUC_CONST; -gboolean pulse_stream_update_mute (PulseStream *pstream, - gboolean mute); +guint32 pulse_stream_get_index (PulseStream *stream); +PulseConnection *pulse_stream_get_connection (PulseStream *stream); -gboolean pulse_stream_update_active_port (PulseStream *pstream, - MateMixerPort *port); +PulseDevice * pulse_stream_get_device (PulseStream *stream); G_END_DECLS |