From 53427fb3d4723e290cdff04b733736dac0ca15e2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 14 Jan 2007 04:33:13 +0000 Subject: sparse: move extern declarations for plugins into header files git-svn-id: https://svn.musicpd.org/mpd/trunk@5261 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 9 --------- src/audioOutput.h | 10 ++++++++++ src/inputPlugin.c | 10 ---------- src/inputPlugin.h | 10 ++++++++++ 4 files changed, 20 insertions(+), 19 deletions(-) (limited to 'src') 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 -- cgit v1.2.3