diff options
author | Max Kellermann <max@duempel.org> | 2013-07-30 20:11:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 20:19:53 +0200 |
commit | 06f898cc1240a29b293de0e97ad95a4fdc971254 (patch) | |
tree | 001a6d3db039cdc03323f3bfddc13b94bde31ce4 /src/output/HttpdOutputPlugin.cxx | |
parent | 6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff) | |
download | mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip |
tag: convert to C++
Diffstat (limited to 'src/output/HttpdOutputPlugin.cxx')
-rw-r--r-- | src/output/HttpdOutputPlugin.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output/HttpdOutputPlugin.cxx b/src/output/HttpdOutputPlugin.cxx index 2ac462842..36bd1aee1 100644 --- a/src/output/HttpdOutputPlugin.cxx +++ b/src/output/HttpdOutputPlugin.cxx @@ -34,6 +34,7 @@ #include <sys/types.h> #include <unistd.h> +#include <string.h> #include <errno.h> #ifdef HAVE_LIBWRAP @@ -484,7 +485,7 @@ httpd_output_pause(struct audio_output *ao) } inline void -HttpdOutput::SendTag(const struct tag *tag) +HttpdOutput::SendTag(const Tag *tag) { assert(tag != NULL); @@ -523,7 +524,7 @@ HttpdOutput::SendTag(const struct tag *tag) TAG_NUM_OF_ITEM_TYPES }; - metadata = icy_server_metadata_page(tag, &types[0]); + metadata = icy_server_metadata_page(*tag, &types[0]); if (metadata != NULL) { const ScopeLock protect(mutex); for (auto &client : clients) @@ -533,7 +534,7 @@ HttpdOutput::SendTag(const struct tag *tag) } static void -httpd_output_tag(struct audio_output *ao, const struct tag *tag) +httpd_output_tag(struct audio_output *ao, const Tag *tag) { HttpdOutput *httpd = Cast(ao); |