aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 11:33:51 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 11:33:51 +0100
commite7c3f469c3a606158144f235dd874c4faf658557 (patch)
tree1e434de6ce96d7a170de4ad08d5936d01307ffb2 /src/mixer_api.h
parentf15d879e37985224aa4780a9de6b81d2df781ed6 (diff)
downloadmpd-e7c3f469c3a606158144f235dd874c4faf658557.tar.gz
mpd-e7c3f469c3a606158144f235dd874c4faf658557.tar.xz
mpd-e7c3f469c3a606158144f235dd874c4faf658557.zip
mixer_api: moved struct mixer_plugin to mixer_plugin.h
Diffstat (limited to 'src/mixer_api.h')
-rw-r--r--src/mixer_api.h42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/mixer_api.h b/src/mixer_api.h
index 959d502c3..22858821c 100644
--- a/src/mixer_api.h
+++ b/src/mixer_api.h
@@ -20,7 +20,7 @@
#ifndef MPD_MIXER_H
#define MPD_MIXER_H
-#include <stdbool.h>
+#include "mixer_plugin.h"
/*
* list of currently implemented mixers
@@ -30,46 +30,6 @@ extern const struct mixer_plugin alsa_mixer;
extern const struct mixer_plugin oss_mixer;
extern const struct mixer_plugin pulse_mixer;
-struct config_param;
-
-struct mixer_plugin {
- /**
- * Alocates and configures a mixer device.
- */
- struct mixer *(*init)(const struct config_param *param);
-
- /**
- * Finish and free mixer data
- */
- void (*finish)(struct mixer *data);
-
- /**
- * Open mixer device
- */
- bool (*open)(struct mixer *data);
-
- /**
- * Close mixer device
- */
- void (*close)(struct mixer *data);
-
- /**
- * Reads the current volume.
- *
- * @return the current volume (0..100 including) or -1 on
- * error
- */
- int (*get_volume)(struct mixer *mixer);
-
- /**
- * Sets the volume.
- *
- * @param volume the new volume (0..100 including)
- * @return true on success
- */
- bool (*set_volume)(struct mixer *mixer, unsigned volume);
-};
-
struct mixer {
const struct mixer_plugin *plugin;
};