output_print: convert to C++
This commit is contained in:
		| @@ -19,12 +19,12 @@ | ||||
|  | ||||
| #include "config.h" | ||||
| #include "OutputCommands.hxx" | ||||
| #include "OutputPrint.hxx" | ||||
|  | ||||
| extern "C" { | ||||
| #include "protocol/argparser.h" | ||||
| #include "protocol/result.h" | ||||
| #include "output_command.h" | ||||
| #include "output_print.h" | ||||
| } | ||||
|  | ||||
| #include <string.h> | ||||
|   | ||||
| @@ -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); | ||||
| @@ -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 | ||||
| @@ -22,8 +22,8 @@ | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #ifndef OUTPUT_PRINT_H | ||||
| #define OUTPUT_PRINT_H | ||||
| #ifndef MPD_OUTPUT_PRINT_HXX | ||||
| #define MPD_OUTPUT_PRINT_HXX | ||||
| 
 | ||||
| struct client; | ||||
| 
 | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann