aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputPrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 10:58:39 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 10:58:39 +0100
commit981906ecd1b25012ca5aeafb678f6ec4a42aa9a2 (patch)
treea13a0023c2af2d7086045c54764889f05dd422de /src/OutputPrint.cxx
parent90fe4c5124e3fd335f05804d3cc47ba996e62b14 (diff)
downloadmpd-981906ecd1b25012ca5aeafb678f6ec4a42aa9a2.tar.gz
mpd-981906ecd1b25012ca5aeafb678f6ec4a42aa9a2.tar.xz
mpd-981906ecd1b25012ca5aeafb678f6ec4a42aa9a2.zip
output_print: convert to C++
Diffstat (limited to '')
-rw-r--r--src/OutputPrint.cxx (renamed from src/output_print.c)9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output_print.c b/src/OutputPrint.cxx
index 483648ca2..aa3c4c043 100644
--- a/src/output_print.c
+++ b/src/OutputPrint.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
@@ -23,15 +23,18 @@
*/
#include "config.h"
-#include "output_print.h"
+#include "OutputPrint.hxx"
#include "output_internal.h"
+
+extern "C" {
#include "output_all.h"
#include "client.h"
+}
void
printAudioDevices(struct client *client)
{
- unsigned n = audio_output_count();
+ const unsigned n = audio_output_count();
for (unsigned i = 0; i < n; ++i) {
const struct audio_output *ao = audio_output_get(i);