aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-14 04:33:13 +0000
committerEric Wong <normalperson@yhbt.net>2007-01-14 04:33:13 +0000
commit53427fb3d4723e290cdff04b733736dac0ca15e2 (patch)
tree257a8af34ac7942d40b552c1db50935139325bcf /src
parent0a6d48c28eb40e3e25e6f476be6aad0e0180f01c (diff)
downloadmpd-53427fb3d4723e290cdff04b733736dac0ca15e2.tar.gz
mpd-53427fb3d4723e290cdff04b733736dac0ca15e2.tar.xz
mpd-53427fb3d4723e290cdff04b733736dac0ca15e2.zip
sparse: move extern declarations for plugins into header files
git-svn-id: https://svn.musicpd.org/mpd/trunk@5261 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/audio.c9
-rw-r--r--src/audioOutput.h10
-rw-r--r--src/inputPlugin.c10
-rw-r--r--src/inputPlugin.h10
4 files changed, 20 insertions, 19 deletions
diff --git a/src/audio.c b/src/audio.c
index 9fba7911b..1a11d25a9 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -89,15 +89,6 @@ int cmpAudioFormat(AudioFormat * f1, AudioFormat * f2)
return 1;
}
-extern AudioOutputPlugin alsaPlugin;
-extern AudioOutputPlugin aoPlugin;
-extern AudioOutputPlugin ossPlugin;
-extern AudioOutputPlugin osxPlugin;
-extern AudioOutputPlugin pulsePlugin;
-extern AudioOutputPlugin mvpPlugin;
-extern AudioOutputPlugin shoutPlugin;
-extern AudioOutputPlugin jackPlugin;
-
void loadAudioDrivers(void)
{
initAudioOutputPlugins();
diff --git a/src/audioOutput.h b/src/audioOutput.h
index 235d7eda1..136d10b21 100644
--- a/src/audioOutput.h
+++ b/src/audioOutput.h
@@ -102,4 +102,14 @@ int keepAudioOutputAlive(AudioOutput * audioOutput, int ms);
void sendMetadataToAudioOutput(AudioOutput * audioOutput, MpdTag * tag);
void printAllOutputPluginTypes(FILE * fp);
+
+extern AudioOutputPlugin alsaPlugin;
+extern AudioOutputPlugin aoPlugin;
+extern AudioOutputPlugin ossPlugin;
+extern AudioOutputPlugin osxPlugin;
+extern AudioOutputPlugin pulsePlugin;
+extern AudioOutputPlugin mvpPlugin;
+extern AudioOutputPlugin shoutPlugin;
+extern AudioOutputPlugin jackPlugin;
+
#endif
diff --git a/src/inputPlugin.c b/src/inputPlugin.c
index eee78f66d..4bbcd00b9 100644
--- a/src/inputPlugin.c
+++ b/src/inputPlugin.c
@@ -137,16 +137,6 @@ void printAllInputPluginSuffixes(FILE * fp)
fflush(fp);
}
-extern InputPlugin mp3Plugin;
-extern InputPlugin oggvorbisPlugin;
-extern InputPlugin flacPlugin;
-extern InputPlugin oggflacPlugin;
-extern InputPlugin audiofilePlugin;
-extern InputPlugin mp4Plugin;
-extern InputPlugin mpcPlugin;
-extern InputPlugin aacPlugin;
-extern InputPlugin modPlugin;
-
void initInputPlugins(void)
{
inputPlugin_list = makeList(NULL, 1);
diff --git a/src/inputPlugin.h b/src/inputPlugin.h
index 7f40acc7c..83f8b2b21 100644
--- a/src/inputPlugin.h
+++ b/src/inputPlugin.h
@@ -96,4 +96,14 @@ void initInputPlugins(void);
/* this is where we "unload" all the "plugins" */
void finishInputPlugins(void);
+extern InputPlugin mp3Plugin;
+extern InputPlugin oggvorbisPlugin;
+extern InputPlugin flacPlugin;
+extern InputPlugin oggflacPlugin;
+extern InputPlugin audiofilePlugin;
+extern InputPlugin mp4Plugin;
+extern InputPlugin mpcPlugin;
+extern InputPlugin aacPlugin;
+extern InputPlugin modPlugin;
+
#endif