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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user