aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-25 17:37:52 +0100
committerMax Kellermann <max@duempel.org>2009-01-25 17:37:52 +0100
commitad8561bfdc76d05812efc7fa802df48c37fcf770 (patch)
tree5b6c4970ac0df54f41ed362159b5b456d1d815bf /src/mixer_api.h
parent899eb5383d7d0cdd6cd9bc2987d12fa87670fdc5 (diff)
downloadmpd-ad8561bfdc76d05812efc7fa802df48c37fcf770.tar.gz
mpd-ad8561bfdc76d05812efc7fa802df48c37fcf770.tar.xz
mpd-ad8561bfdc76d05812efc7fa802df48c37fcf770.zip
mixer: make all mixer_plugin pointers const
The plugin structures must never be modified.
Diffstat (limited to 'src/mixer_api.h')
-rw-r--r--src/mixer_api.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mixer_api.h b/src/mixer_api.h
index 1f1a2b0b1..c209f4b06 100644
--- a/src/mixer_api.h
+++ b/src/mixer_api.h
@@ -25,8 +25,8 @@
* list of currently implemented mixers
*/
-extern struct mixer_plugin alsa_mixer;
-extern struct mixer_plugin oss_mixer;
+extern const struct mixer_plugin alsa_mixer;
+extern const struct mixer_plugin oss_mixer;
struct mixer_data;
@@ -65,11 +65,11 @@ struct mixer_plugin {
};
struct mixer {
- struct mixer_plugin *plugin;
+ const struct mixer_plugin *plugin;
struct mixer_data *data;
};
-void mixer_init(struct mixer *mixer, struct mixer_plugin *plugin);
+void mixer_init(struct mixer *mixer, const struct mixer_plugin *plugin);
void mixer_finish(struct mixer *mixer);
void mixer_configure(struct mixer *mixer, const struct config_param *param);
bool mixer_open(struct mixer *mixer);