aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CurlInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 13:47:48 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:50 +0200
commitbf6ed643e01687ed21b3a21cb3f77a1042e22c15 (patch)
treeddd74a2f850d4469517ebbda07779ac45ed3ebb8 /src/input/CurlInputPlugin.cxx
parenta0beb5fa26e2b66d01a3b21534b848930929a333 (diff)
downloadmpd-bf6ed643e01687ed21b3a21cb3f77a1042e22c15.tar.gz
mpd-bf6ed643e01687ed21b3a21cb3f77a1042e22c15.tar.xz
mpd-bf6ed643e01687ed21b3a21cb3f77a1042e22c15.zip
InputPlugin: pass config_param reference
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r--src/input/CurlInputPlugin.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index 33bacffc5..5e9cbf1d8 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -614,7 +614,7 @@ CurlSockets::DispatchSockets()
*/
static bool
-input_curl_init(const struct config_param *param,
+input_curl_init(const config_param &param,
G_GNUC_UNUSED GError **error_r)
{
CURLcode code = curl_global_init(CURL_GLOBAL_ALL);
@@ -627,11 +627,10 @@ input_curl_init(const struct config_param *param,
http_200_aliases = curl_slist_append(http_200_aliases, "ICY 200 OK");
- proxy = config_get_block_string(param, "proxy", NULL);
- proxy_port = config_get_block_unsigned(param, "proxy_port", 0);
- proxy_user = config_get_block_string(param, "proxy_user", NULL);
- proxy_password = config_get_block_string(param, "proxy_password",
- NULL);
+ proxy = param.GetBlockValue("proxy");
+ proxy_port = param.GetBlockValue("proxy_port", 0u);
+ proxy_user = param.GetBlockValue("proxy_user");
+ proxy_password = param.GetBlockValue("proxy_password");
if (proxy == NULL) {
/* deprecated proxy configuration */