aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-01 14:54:09 +0100
committerMax Kellermann <max@duempel.org>2008-11-01 14:54:09 +0100
commit0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (patch)
treebc1f7fc067f7f794b34dfed31083fd9eb13dcd19 /src/decoder_list.c
parent1a4a3e1f1f09ade38095757952bbf732ec275fe8 (diff)
downloadmpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.tar.gz
mpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.tar.xz
mpd-0b614fbaae9089d6d1ce981735a51f2a5b3cbf65.zip
decoder: make all decoder_plugin structs const
All decoder_plugin structs are initialized at compile time, and must never change.
Diffstat (limited to 'src/decoder_list.c')
-rw-r--r--src/decoder_list.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c
index 99d490777..f2f245617 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -21,17 +21,17 @@
#include <glib.h>
-extern struct decoder_plugin mp3Plugin;
-extern struct decoder_plugin oggvorbisPlugin;
-extern struct decoder_plugin flacPlugin;
-extern struct decoder_plugin oggflacPlugin;
-extern struct decoder_plugin audiofilePlugin;
-extern struct decoder_plugin mp4Plugin;
-extern struct decoder_plugin aacPlugin;
-extern struct decoder_plugin mpcPlugin;
-extern struct decoder_plugin wavpackPlugin;
-extern struct decoder_plugin modPlugin;
-extern struct decoder_plugin ffmpegPlugin;
+extern const struct decoder_plugin mp3Plugin;
+extern const struct decoder_plugin oggvorbisPlugin;
+extern const struct decoder_plugin flacPlugin;
+extern const struct decoder_plugin oggflacPlugin;
+extern const struct decoder_plugin audiofilePlugin;
+extern const struct decoder_plugin mp4Plugin;
+extern const struct decoder_plugin aacPlugin;
+extern const struct decoder_plugin mpcPlugin;
+extern const struct decoder_plugin wavpackPlugin;
+extern const struct decoder_plugin modPlugin;
+extern const struct decoder_plugin ffmpegPlugin;
static const struct decoder_plugin *const decoder_plugins[] = {
#ifdef HAVE_MAD