aboutsummaryrefslogtreecommitdiffstats
path: root/src/MixerPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-16 21:33:25 +0200
committerMax Kellermann <max@duempel.org>2013-04-16 21:33:25 +0200
commitcb8449a66dfa7503951d3c9a27a957918849ac57 (patch)
tree33d1af378739fb46d12569b03022697226f5b40f /src/MixerPlugin.hxx
parent621467717d93221a63c9234d4273d9629635c30f (diff)
downloadmpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.gz
mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.xz
mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.zip
MixerInternal: convert to class
Diffstat (limited to 'src/MixerPlugin.hxx')
-rw-r--r--src/MixerPlugin.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/MixerPlugin.hxx b/src/MixerPlugin.hxx
index 1fbdfbbc2..cc57a76a9 100644
--- a/src/MixerPlugin.hxx
+++ b/src/MixerPlugin.hxx
@@ -32,7 +32,7 @@
#include <stdbool.h>
struct config_param;
-struct mixer;
+class Mixer;
struct mixer_plugin {
/**
@@ -45,13 +45,13 @@ struct mixer_plugin {
* NULL to ignore errors
* @return a mixer object, or NULL on error
*/
- struct mixer *(*init)(void *ao, const struct config_param *param,
- GError **error_r);
+ Mixer *(*init)(void *ao, const struct config_param *param,
+ GError **error_r);
/**
* Finish and free mixer data
*/
- void (*finish)(struct mixer *data);
+ void (*finish)(Mixer *data);
/**
* Open mixer device
@@ -60,12 +60,12 @@ struct mixer_plugin {
* NULL to ignore errors
* @return true on success, false on error
*/
- bool (*open)(struct mixer *data, GError **error_r);
+ bool (*open)(Mixer *data, GError **error_r);
/**
* Close mixer device
*/
- void (*close)(struct mixer *data);
+ void (*close)(Mixer *data);
/**
* Reads the current volume.
@@ -75,7 +75,7 @@ struct mixer_plugin {
* @return the current volume (0..100 including) or -1 if
* unavailable or on error (error_r set, mixer will be closed)
*/
- int (*get_volume)(struct mixer *mixer, GError **error_r);
+ int (*get_volume)(Mixer *mixer, GError **error_r);
/**
* Sets the volume.
@@ -85,7 +85,7 @@ struct mixer_plugin {
* @param volume the new volume (0..100 including)
* @return true on success, false on error
*/
- bool (*set_volume)(struct mixer *mixer, unsigned volume,
+ bool (*set_volume)(Mixer *mixer, unsigned volume,
GError **error_r);
/**