summaryrefslogtreecommitdiff
path: root/backends/oss/oss-stream-control.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-08-12 04:56:55 +0200
committerMichal Ratajsky <[email protected]>2014-08-12 04:56:55 +0200
commit6c6d4239ddc807e922df3874654f99eea291aadb (patch)
tree558f48fc965476344a946d93088680db3b5bac41 /backends/oss/oss-stream-control.h
parent8436ec1641eee8868128755f6d1475230cea25e6 (diff)
downloadlibmatemixer-6c6d4239ddc807e922df3874654f99eea291aadb.tar.bz2
libmatemixer-6c6d4239ddc807e922df3874654f99eea291aadb.tar.xz
Add ALSA, improve OSS and remove OSS4
Diffstat (limited to 'backends/oss/oss-stream-control.h')
-rw-r--r--backends/oss/oss-stream-control.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/backends/oss/oss-stream-control.h b/backends/oss/oss-stream-control.h
index 420af48..c839faf 100644
--- a/backends/oss/oss-stream-control.h
+++ b/backends/oss/oss-stream-control.h
@@ -20,6 +20,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <libmatemixer/matemixer.h>
G_BEGIN_DECLS
@@ -42,7 +43,7 @@ typedef struct _OssStreamControlPrivate OssStreamControlPrivate;
struct _OssStreamControl
{
- GObject parent;
+ MateMixerStreamControl parent;
/*< private >*/
OssStreamControlPrivate *priv;
@@ -50,24 +51,19 @@ struct _OssStreamControl
struct _OssStreamControlClass
{
- GObjectClass parent;
+ MateMixerStreamControlClass parent;
};
-GType oss_stream_control_get_type (void) G_GNUC_CONST;
+GType oss_stream_control_get_type (void) G_GNUC_CONST;
-OssStreamControl *oss_stream_control_new (gint fd,
- gint dev_number,
- const gchar *name,
- const gchar *description,
- gboolean stereo);
+OssStreamControl *oss_stream_control_new (const gchar *name,
+ const gchar *label,
+ MateMixerStreamControlRole role,
+ gint fd,
+ gint devnum,
+ gboolean stereo);
-gboolean oss_stream_control_update (OssStreamControl *octl);
-
-gboolean oss_stream_control_set_port (OssStreamControl *octl,
- MateMixerPort *port);
-
-gboolean oss_stream_control_set_role (OssStreamControl *octl,
- MateMixerStreamControlRole role);
+gboolean oss_stream_control_update (OssStreamControl *control);
G_END_DECLS