From e41be362a1dc5691721d72b7f915e32d7f5272bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:08 +0200 Subject: renamed InputPlugin to struct decoder_plugin "decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required. --- src/song.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index a8ab4284f..920bf23a6 100644 --- a/src/song.c +++ b/src/song.c @@ -25,6 +25,7 @@ #include "path.h" #include "playlist.h" #include "inputPlugin.h" +#include "decoder_api.h" #include "myfprintf.h" #define SONG_KEY "key: " @@ -62,7 +63,7 @@ Song *newSong(const char *url, int type, Directory * parentDir) assert(type == SONG_TYPE_URL || parentDir); if (song->type == SONG_TYPE_FILE) { - InputPlugin *plugin; + struct decoder_plugin *plugin; unsigned int next = 0; char path_max_tmp[MPD_PATH_MAX]; char *abs_path = rmp2amp_r(path_max_tmp, @@ -286,7 +287,7 @@ void readSongInfoIntoList(FILE * fp, SongList * list, Directory * parentDir) int updateSongInfo(Song * song) { if (song->type == SONG_TYPE_FILE) { - InputPlugin *plugin; + struct decoder_plugin *plugin; unsigned int next = 0; char path_max_tmp[MPD_PATH_MAX]; char abs_path[MPD_PATH_MAX]; -- cgit v1.2.3