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/IcyMetaDataServer.cxx | |
parent | 6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff) | |
download | mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip |
tag: convert to C++
Diffstat (limited to 'src/IcyMetaDataServer.cxx')
-rw-r--r-- | src/IcyMetaDataServer.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/IcyMetaDataServer.cxx b/src/IcyMetaDataServer.cxx index 8f02acacb..d0ae0b77a 100644 --- a/src/IcyMetaDataServer.cxx +++ b/src/IcyMetaDataServer.cxx @@ -20,11 +20,12 @@ #include "config.h" #include "IcyMetaDataServer.hxx" #include "Page.hxx" -#include "tag.h" +#include "Tag.hxx" #include <glib.h> #include <assert.h> +#include <string.h> #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "icy_server" @@ -87,7 +88,7 @@ icy_server_metadata_string(const char *stream_title, const char* stream_url) } Page * -icy_server_metadata_page(const struct tag *tag, const enum tag_type *types) +icy_server_metadata_page(const Tag &tag, const enum tag_type *types) { const gchar *tag_items[TAG_NUM_OF_ITEM_TYPES]; gint last_item, item; @@ -101,7 +102,7 @@ icy_server_metadata_page(const struct tag *tag, const enum tag_type *types) last_item = -1; while (*types != TAG_NUM_OF_ITEM_TYPES) { - const gchar *tag_item = tag_get_value(tag, *types++); + const gchar *tag_item = tag.GetValue(*types++); if (tag_item) tag_items[++last_item] = tag_item; } |