aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CurlInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-23 12:08:46 +0100
committerMax Kellermann <max@duempel.org>2013-11-23 12:08:46 +0100
commita566c28a49a72bf4dd2f33ad5ee0bf5635871550 (patch)
tree8ff11588f964ca0ca8f47502e6a1a6477a9d5b03 /src/input/CurlInputPlugin.cxx
parent2eddb63a83c94c9cf55e6a5ef2b7be7431247ecd (diff)
downloadmpd-a566c28a49a72bf4dd2f33ad5ee0bf5635871550.tar.gz
mpd-a566c28a49a72bf4dd2f33ad5ee0bf5635871550.tar.xz
mpd-a566c28a49a72bf4dd2f33ad5ee0bf5635871550.zip
input/curl: add global variable "curl_version"
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r--src/input/CurlInputPlugin.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index 73c1fc4b7..b51fb99ac 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -279,6 +279,11 @@ private:
virtual void OnTimeout() override;
};
+/**
+ * libcurl version number encoded in a 24 bit integer.
+ */
+static unsigned curl_version_num;
+
/** libcurl should accept "ICY 200 OK" */
static struct curl_slist *http_200_aliases;
@@ -592,6 +597,8 @@ input_curl_init(const config_param &param, Error &error)
if (version_info->features & CURL_VERSION_SSL)
FormatDebug(curl_domain, "with %s",
version_info->ssl_version);
+
+ curl_version_num = version_info->version_num;
}
http_200_aliases = curl_slist_append(http_200_aliases, "ICY 200 OK");