From fe53a376a3c2d6e7aa14c73df56df816e2d89d6f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 13:54:14 +0200 Subject: PlaylistPlugin: pass config_param reference --- src/playlist/LastFMPlaylistPlugin.cxx | 6 +++--- src/playlist/SoundCloudPlaylistPlugin.cxx | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/playlist') diff --git a/src/playlist/LastFMPlaylistPlugin.cxx b/src/playlist/LastFMPlaylistPlugin.cxx index b4933e6a3..34abaeb5f 100644 --- a/src/playlist/LastFMPlaylistPlugin.cxx +++ b/src/playlist/LastFMPlaylistPlugin.cxx @@ -44,10 +44,10 @@ static struct { } lastfm_config; static bool -lastfm_init(const struct config_param *param) +lastfm_init(const config_param ¶m) { - const char *user = config_get_block_string(param, "user", NULL); - const char *passwd = config_get_block_string(param, "password", NULL); + const char *user = param.GetBlockValue("user"); + const char *passwd = param.GetBlockValue("password"); if (user == NULL || passwd == NULL) { g_debug("disabling the last.fm playlist plugin " diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index 01055d1c9..ce9bd1385 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -35,10 +35,9 @@ static struct { } soundcloud_config; static bool -soundcloud_init(const struct config_param *param) +soundcloud_init(const config_param ¶m) { - soundcloud_config.apikey = - config_dup_block_string(param, "apikey", NULL); + soundcloud_config.apikey = param.DupBlockString("apikey"); if (soundcloud_config.apikey == NULL) { g_debug("disabling the soundcloud playlist plugin " "because API key is not set"); -- cgit v1.2.3