Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3a2254c9
Commit
3a2254c9
authored
Apr 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output: convert to C++
parent
4aeec4bb
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
28 additions
and
87 deletions
+28
-87
Makefile.am
Makefile.am
+2
-2
CommandLine.cxx
src/CommandLine.cxx
+1
-1
MixerAll.cxx
src/MixerAll.cxx
+1
-4
OutputAll.cxx
src/OutputAll.cxx
+1
-5
OutputCommand.cxx
src/OutputCommand.cxx
+2
-5
OutputControl.cxx
src/OutputControl.cxx
+2
-6
OutputFinish.cxx
src/OutputFinish.cxx
+2
-6
OutputInit.cxx
src/OutputInit.cxx
+1
-5
OutputInternal.hxx
src/OutputInternal.hxx
+3
-20
OutputPlugin.cxx
src/OutputPlugin.cxx
+2
-6
OutputPlugin.hxx
src/OutputPlugin.hxx
+3
-11
OutputPrint.cxx
src/OutputPrint.cxx
+1
-1
OutputState.cxx
src/OutputState.cxx
+1
-1
OutputThread.cxx
src/OutputThread.cxx
+1
-5
HttpdInternal.hxx
src/output/HttpdInternal.hxx
+1
-1
output_api.h
src/output_api.h
+2
-2
run_output.cxx
test/run_output.cxx
+2
-6
No files found.
Makefile.am
View file @
3a2254c9
...
...
@@ -54,7 +54,6 @@ mpd_headers = \
src/ape.h
\
src/audio_format.h
\
src/audio_check.h
\
src/output_internal.h
\
src/output_api.h
\
src/filter_internal.h
\
src/command.h
\
...
...
@@ -768,6 +767,7 @@ OUTPUT_LIBS = \
$(SHOUT_LIBS)
OUTPUT_API_SRC
=
\
src/OutputInternal.hxx
\
src/OutputList.cxx src/OutputList.hxx
\
src/OutputAll.cxx src/OutputAll.hxx
\
src/OutputThread.cxx src/OutputThread.hxx
\
...
...
@@ -776,7 +776,7 @@ OUTPUT_API_SRC = \
src/OutputState.cxx src/OutputState.hxx
\
src/OutputPrint.cxx src/OutputPrint.hxx
\
src/OutputCommand.cxx src/OutputCommand.hxx
\
src/OutputPlugin.cxx src/
output_plugin.h
\
src/OutputPlugin.cxx src/
OutputPlugin.hxx
\
src/OutputFinish.cxx
\
src/OutputInit.cxx
...
...
src/CommandLine.cxx
View file @
3a2254c9
...
...
@@ -25,7 +25,7 @@
#include "DecoderList.hxx"
#include "decoder_plugin.h"
#include "OutputList.hxx"
#include "
output_plugin.h
"
#include "
OutputPlugin.hxx
"
#include "InputRegistry.hxx"
#include "InputPlugin.hxx"
#include "PlaylistRegistry.hxx"
...
...
src/MixerAll.cxx
View file @
3a2254c9
...
...
@@ -24,10 +24,7 @@
#include "MixerList.hxx"
#include "OutputAll.hxx"
#include "pcm/PcmVolume.hxx"
extern
"C"
{
#include "output_internal.h"
}
#include "OutputInternal.hxx"
#include <glib.h>
...
...
src/OutputAll.cxx
View file @
3a2254c9
...
...
@@ -19,12 +19,8 @@
#include "config.h"
#include "OutputAll.hxx"
extern
"C"
{
#include "output_internal.h"
}
#include "PlayerControl.hxx"
#include "OutputInternal.hxx"
#include "OutputControl.hxx"
#include "OutputError.hxx"
#include "MusicBuffer.hxx"
...
...
src/OutputCommand.cxx
View file @
3a2254c9
...
...
@@ -27,15 +27,12 @@
#include "config.h"
#include "OutputCommand.hxx"
#include "OutputAll.hxx"
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "PlayerControl.hxx"
#include "MixerControl.hxx"
#include "Idle.hxx"
extern
"C"
{
#include "output_internal.h"
#include "output_plugin.h"
}
extern
unsigned
audio_output_state_version
;
bool
...
...
src/OutputControl.cxx
View file @
3a2254c9
...
...
@@ -20,12 +20,8 @@
#include "config.h"
#include "OutputControl.hxx"
#include "OutputThread.hxx"
#include "output_api.h"
extern
"C"
{
#include "output_internal.h"
}
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "MixerPlugin.hxx"
#include "MixerControl.hxx"
#include "notify.hxx"
...
...
src/OutputFinish.cxx
View file @
3a2254c9
...
...
@@ -18,12 +18,8 @@
*/
#include "config.h"
extern
"C"
{
#include "output_internal.h"
#include "output_plugin.h"
}
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "MixerControl.hxx"
#include "FilterInternal.hxx"
...
...
src/OutputInit.cxx
View file @
3a2254c9
...
...
@@ -18,17 +18,13 @@
*/
#include "config.h"
#include "OutputInternal.hxx"
#include "OutputControl.hxx"
#include "OutputList.hxx"
#include "OutputError.hxx"
#include "FilterConfig.hxx"
#include "output_api.h"
#include "AudioParser.hxx"
extern
"C"
{
#include "output_internal.h"
}
#include "MixerList.hxx"
#include "MixerType.hxx"
#include "MixerControl.hxx"
...
...
src/
output_internal.h
→
src/
OutputInternal.hxx
View file @
3a2254c9
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_OUTPUT_INTERNAL_H
#define MPD_OUTPUT_INTERNAL_H
#ifndef MPD_OUTPUT_INTERNAL_H
XX
#define MPD_OUTPUT_INTERNAL_H
XX
#include "audio_format.h"
#include "pcm/pcm_buffer.h"
...
...
@@ -27,12 +27,7 @@
#include <time.h>
#ifdef __cplusplus
class
Filter
;
#else
typedef
void
*
Filter
;
#endif
struct
config_param
;
enum
audio_output_command
{
...
...
@@ -76,11 +71,7 @@ struct audio_output {
* May be NULL if none is available, or if software volume is
* configured.
*/
#ifdef __cplusplus
class
Mixer
*
mixer
;
#else
struct
mixer
*
mixer
;
#endif
/**
* Will this output receive tags from the decoder? The
...
...
@@ -267,10 +258,6 @@ audio_output_command_is_finished(const struct audio_output *ao)
return
ao
->
command
==
AO_COMMAND_NONE
;
}
#ifdef __cplusplus
extern
"C"
{
#endif
struct
audio_output
*
audio_output_new
(
const
struct
config_param
*
param
,
struct
player_control
*
pc
,
...
...
@@ -287,8 +274,4 @@ ao_base_finish(struct audio_output *ao);
void
audio_output_free
(
struct
audio_output
*
ao
);
#ifdef __cplusplus
}
#endif
#endif
src/OutputPlugin.cxx
View file @
3a2254c9
...
...
@@ -18,12 +18,8 @@
*/
#include "config.h"
extern
"C"
{
#include "output_plugin.h"
}
#include "output_internal.h"
#include "OutputPlugin.hxx"
#include "OutputInternal.hxx"
struct
audio_output
*
ao_plugin_init
(
const
struct
audio_output_plugin
*
plugin
,
...
...
src/
output_plugin.h
→
src/
OutputPlugin.hxx
View file @
3a2254c9
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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_OUTPUT_PLUGIN_H
#define MPD_OUTPUT_PLUGIN_H
#ifndef MPD_OUTPUT_PLUGIN_H
XX
#define MPD_OUTPUT_PLUGIN_H
XX
#include "gcc.h"
#include "gerror.h"
...
...
@@ -166,10 +166,6 @@ ao_plugin_test_default_device(const struct audio_output_plugin *plugin)
:
false
;
}
#ifdef __cplusplus
extern
"C"
{
#endif
gcc_malloc
struct
audio_output
*
ao_plugin_init
(
const
struct
audio_output_plugin
*
plugin
,
...
...
@@ -212,8 +208,4 @@ ao_plugin_cancel(struct audio_output *ao);
bool
ao_plugin_pause
(
struct
audio_output
*
ao
);
#ifdef __cplusplus
}
#endif
#endif
src/OutputPrint.cxx
View file @
3a2254c9
...
...
@@ -25,7 +25,7 @@
#include "config.h"
#include "OutputPrint.hxx"
#include "OutputAll.hxx"
#include "
output_internal.h
"
#include "
OutputInternal.hxx
"
#include "Client.hxx"
void
...
...
src/OutputState.cxx
View file @
3a2254c9
...
...
@@ -25,7 +25,7 @@
#include "config.h"
#include "OutputState.hxx"
#include "OutputAll.hxx"
#include "
output_internal.h
"
#include "
OutputInternal.hxx
"
#include <glib.h>
...
...
src/OutputThread.cxx
View file @
3a2254c9
...
...
@@ -19,13 +19,9 @@
#include "config.h"
#include "OutputThread.hxx"
#include "OutputInternal.hxx"
#include "output_api.h"
#include "pcm/PcmMix.hxx"
extern
"C"
{
#include "output_internal.h"
}
#include "notify.hxx"
#include "FilterInternal.hxx"
#include "filter/ConvertFilterPlugin.hxx"
...
...
src/output/HttpdInternal.hxx
View file @
3a2254c9
...
...
@@ -25,7 +25,7 @@
#ifndef MPD_OUTPUT_HTTPD_INTERNAL_H
#define MPD_OUTPUT_HTTPD_INTERNAL_H
#include "
output_internal.h
"
#include "
OutputInternal.hxx
"
#include "timer.h"
#include "thread/Mutex.hxx"
#include "event/ServerSocket.hxx"
...
...
src/output_api.h
View file @
3a2254c9
...
...
@@ -20,8 +20,8 @@
#ifndef MPD_OUTPUT_API_H
#define MPD_OUTPUT_API_H
#include "
output_plugin.h
"
#include "
output_internal.h
"
#include "
OutputPlugin.hxx
"
#include "
OutputInternal.hxx
"
#include "audio_format.h"
#include "tag.h"
#include "conf.h"
...
...
test/run_output.cxx
View file @
3a2254c9
...
...
@@ -19,6 +19,8 @@
#include "config.h"
#include "OutputControl.hxx"
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "conf.h"
#include "Idle.hxx"
#include "Main.hxx"
...
...
@@ -28,12 +30,6 @@
#include "fs/Path.hxx"
#include "AudioParser.hxx"
#include "pcm/PcmConvert.hxx"
extern
"C"
{
#include "output_plugin.h"
#include "output_internal.h"
}
#include "FilterRegistry.hxx"
#include "PlayerControl.hxx"
#include "stdbin.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment