From 8d3205871cf398c4e187bb0d1ead28c46a25a8c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Feb 2009 18:56:41 +0100 Subject: 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. --- src/dbUtils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dbUtils.c') diff --git a/src/dbUtils.c b/src/dbUtils.c index a850bdba8..8b3eee371 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -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 { -- cgit v1.2.3