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

@@ -725,7 +725,7 @@ static void song_delete_event(void)
sticker_song_delete(delete);
#endif
deleteASongFromPlaylist(delete);
deleteASongFromPlaylist(&g_playlist, delete);
delete = NULL;
notify_signal(&update_notify);
@@ -742,7 +742,7 @@ static void update_finished_event(void)
if (modified) {
/* send "idle" events */
playlistVersionChange();
playlistVersionChange(&g_playlist);
idle_add(IDLE_DATABASE);
}