diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 09:08:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 09:17:03 +0100 |
commit | 718fd97612c298b7eac47289c1803a2a19d9a859 (patch) | |
tree | 7452de134e5bf8cf9d7c529dcc829b24f3dcd3aa /src | |
parent | f8ff45b212c0c666d676dba9df0936a3bf6e98a5 (diff) | |
download | mpd-718fd97612c298b7eac47289c1803a2a19d9a859.tar.gz mpd-718fd97612c298b7eac47289c1803a2a19d9a859.tar.xz mpd-718fd97612c298b7eac47289c1803a2a19d9a859.zip |
icy_server: convert to C++
Diffstat (limited to 'src')
-rw-r--r-- | src/IcyMetaDataServer.cxx (renamed from src/icy_server.c) | 6 | ||||
-rw-r--r-- | src/IcyMetaDataServer.hxx (renamed from src/icy_server.h) | 15 | ||||
-rw-r--r-- | src/output/HttpdClient.cxx | 2 | ||||
-rw-r--r-- | src/output/HttpdOutputPlugin.cxx | 2 |
4 files changed, 9 insertions, 16 deletions
diff --git a/src/icy_server.c b/src/IcyMetaDataServer.cxx index 4971bc0ee..e7bd0acf4 100644 --- a/src/icy_server.c +++ b/src/IcyMetaDataServer.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -18,7 +18,9 @@ */ #include "config.h" -#include "icy_server.h" +#include "IcyMetaDataServer.hxx" +#include "page.h" +#include "tag.h" #include <glib.h> diff --git a/src/icy_server.h b/src/IcyMetaDataServer.hxx index 15f6f36b7..78f1be7db 100644 --- a/src/icy_server.h +++ b/src/IcyMetaDataServer.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,16 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef ICY_SERVER_H -#define ICY_SERVER_H +#ifndef MPD_ICY_META_DATA_SERVER_HXX +#define MPD_ICY_META_DATA_SERVER_HXX -#include "page.h" #include "tag.h" -#ifdef __cplusplus -extern "C" { -#endif - char* icy_server_metadata_header(const char *name, const char *genre, const char *url, @@ -35,8 +30,4 @@ icy_server_metadata_header(const char *name, struct page* icy_server_metadata_page(const struct tag *tag, const enum tag_type *types); -#ifdef __cplusplus -} -#endif - #endif diff --git a/src/output/HttpdClient.cxx b/src/output/HttpdClient.cxx index 0d0e3c949..5ac3bf7cc 100644 --- a/src/output/HttpdClient.cxx +++ b/src/output/HttpdClient.cxx @@ -22,7 +22,7 @@ #include "HttpdInternal.hxx" #include "util/fifo_buffer.h" #include "page.h" -#include "icy_server.h" +#include "IcyMetaDataServer.hxx" #include "glib_socket.h" #include <assert.h> diff --git a/src/output/HttpdOutputPlugin.cxx b/src/output/HttpdOutputPlugin.cxx index c6367cd21..52b2e0e8d 100644 --- a/src/output/HttpdOutputPlugin.cxx +++ b/src/output/HttpdOutputPlugin.cxx @@ -26,7 +26,7 @@ #include "encoder_list.h" #include "resolver.h" #include "page.h" -#include "icy_server.h" +#include "IcyMetaDataServer.hxx" #include "fd_util.h" #include "ServerSocket.hxx" #include "Main.hxx" |