PlaylistPlugin: pass config_param reference

This commit is contained in:
Max Kellermann
2013-08-04 13:54:14 +02:00
parent 65842cd99e
commit fe53a376a3
4 changed files with 14 additions and 13 deletions

View File

@@ -44,10 +44,10 @@ static struct {
} lastfm_config;
static bool
lastfm_init(const struct config_param *param)
lastfm_init(const config_param &param)
{
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 "

View File

@@ -35,10 +35,9 @@ static struct {
} soundcloud_config;
static bool
soundcloud_init(const struct config_param *param)
soundcloud_init(const config_param &param)
{
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");