aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-04 18:56:41 +0100
committerMax Kellermann <max@duempel.org>2009-02-04 18:56:41 +0100
commit8d3205871cf398c4e187bb0d1ead28c46a25a8c1 (patch)
treed50a3219a796cff081316d9a31d6bb4f9edc2d2c /src/update.c
parent1720c7090dc3d590ffe1b5175e175143c09266f8 (diff)
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.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index c8e32840..276ec5a9 100644
--- a/src/update.c
+++ b/src/update.c
@@ -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);
}