playlist: renamed global "playlist" variable to "g_playlist"

Export the "g_playlist" variable, and pass it to all playlist
functions.  This way, we can split playlist.c easier into separate
parts.  The code which initializes the singleton variable is moved to
playlist_global.c.
This commit is contained in:
Max Kellermann
2009-02-04 18:56:41 +01:00
parent 1720c7090d
commit 8d3205871c
11 changed files with 503 additions and 400 deletions

View File

@@ -168,7 +168,7 @@ int printAllIn(struct client *client, const char *name)
static int
directoryAddSongToPlaylist(struct song *song, G_GNUC_UNUSED void *data)
{
return addSongToPlaylist(song, NULL);
return addSongToPlaylist(&g_playlist, song, NULL);
}
struct add_data {