aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 11:14:36 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 11:14:36 +0100
commit94b2ee627c06679eb2622f2ac2e2fb0240fbab3c (patch)
treed6d38bec1b0b626924d2efd76b769c03b20d7a75 /src
parente30a2dd2d7b7749562ba01bc004c6005c8401a12 (diff)
downloadmpd-94b2ee627c06679eb2622f2ac2e2fb0240fbab3c.tar.gz
mpd-94b2ee627c06679eb2622f2ac2e2fb0240fbab3c.tar.xz
mpd-94b2ee627c06679eb2622f2ac2e2fb0240fbab3c.zip
decoder_print: convert to C++
Diffstat (limited to '')
-rw-r--r--src/DecoderPrint.cxx (renamed from src/decoder_print.c)7
-rw-r--r--src/DecoderPrint.hxx (renamed from src/decoder_print.h)6
-rw-r--r--src/OtherCommands.cxx2
3 files changed, 9 insertions, 6 deletions
diff --git a/src/decoder_print.c b/src/DecoderPrint.cxx
index e14477ed8..a22908c0e 100644
--- a/src/decoder_print.c
+++ b/src/DecoderPrint.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,10 +18,13 @@
*/
#include "config.h"
-#include "decoder_print.h"
+#include "DecoderPrint.hxx"
#include "decoder_list.h"
#include "decoder_plugin.h"
+
+extern "C" {
#include "client.h"
+}
#include <assert.h>
diff --git a/src/decoder_print.h b/src/DecoderPrint.hxx
index 31713d5d8..e6e14aef3 100644
--- a/src/decoder_print.h
+++ b/src/DecoderPrint.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,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_DECODER_PRINT_H
-#define MPD_DECODER_PRINT_H
+#ifndef MPD_DECODER_PRINT_HXX
+#define MPD_DECODER_PRINT_HXX
struct client;
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx
index 756f8d5b6..66d97d841 100644
--- a/src/OtherCommands.cxx
+++ b/src/OtherCommands.cxx
@@ -28,13 +28,13 @@
#include "TagPrint.hxx"
#include "TimePrint.hxx"
#include "Mapper.hxx"
+#include "DecoderPrint.hxx"
extern "C" {
#include "protocol/argparser.h"
#include "protocol/result.h"
#include "ls.h"
#include "uri.h"
-#include "decoder_print.h"
#include "volume.h"
#include "stats.h"
}