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
f90abe95
Commit
f90abe95
authored
Nov 28, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include cleanup using iwyu
parent
46bab7e4
Show whitespace changes
Inline
Side-by-side
Showing
185 changed files
with
113 additions
and
337 deletions
+113
-337
ArchiveFile.hxx
src/ArchiveFile.hxx
+2
-0
ArchiveLookup.cxx
src/ArchiveLookup.cxx
+0
-1
ArchivePlugin.hxx
src/ArchivePlugin.hxx
+0
-2
AvahiPoll.cxx
src/AvahiPoll.cxx
+0
-1
Client.hxx
src/Client.hxx
+1
-1
ClientFile.cxx
src/ClientFile.cxx
+0
-3
ClientGlobal.cxx
src/ClientGlobal.cxx
+0
-1
ClientNew.cxx
src/ClientNew.cxx
+0
-2
ClientRead.cxx
src/ClientRead.cxx
+0
-1
ClientSubscribe.cxx
src/ClientSubscribe.cxx
+0
-5
CommandLine.cxx
src/CommandLine.cxx
+0
-1
ConfigData.cxx
src/ConfigData.cxx
+0
-1
ConfigFile.cxx
src/ConfigFile.cxx
+0
-3
ConfigGlobal.cxx
src/ConfigGlobal.cxx
+0
-2
ConfigTemplates.hxx
src/ConfigTemplates.hxx
+0
-2
CrossFade.cxx
src/CrossFade.cxx
+0
-2
Daemon.cxx
src/Daemon.cxx
+0
-3
DatabaseGlue.cxx
src/DatabaseGlue.cxx
+0
-6
DatabaseHelpers.hxx
src/DatabaseHelpers.hxx
+0
-1
DatabaseLock.cxx
src/DatabaseLock.cxx
+0
-1
DatabasePrint.cxx
src/DatabasePrint.cxx
+0
-1
DatabasePrint.hxx
src/DatabasePrint.hxx
+0
-1
DatabaseQueue.cxx
src/DatabaseQueue.cxx
+0
-1
DatabaseSave.cxx
src/DatabaseSave.cxx
+0
-2
DecoderAPI.cxx
src/DecoderAPI.cxx
+0
-1
DecoderAPI.hxx
src/DecoderAPI.hxx
+4
-0
DecoderControl.cxx
src/DecoderControl.cxx
+0
-2
DecoderInternal.hxx
src/DecoderInternal.hxx
+0
-2
DecoderPlugin.hxx
src/DecoderPlugin.hxx
+0
-1
DecoderThread.cxx
src/DecoderThread.cxx
+0
-1
DirectorySave.cxx
src/DirectorySave.cxx
+0
-3
EncoderAPI.hxx
src/EncoderAPI.hxx
+4
-0
FilterConfig.cxx
src/FilterConfig.cxx
+0
-2
FilterPlugin.cxx
src/FilterPlugin.cxx
+0
-1
FilterRegistry.cxx
src/FilterRegistry.cxx
+0
-1
GlobalEvents.cxx
src/GlobalEvents.cxx
+0
-1
IcyMetaDataServer.cxx
src/IcyMetaDataServer.cxx
+0
-1
InotifyQueue.cxx
src/InotifyQueue.cxx
+0
-1
InotifySource.hxx
src/InotifySource.hxx
+0
-1
Log.cxx
src/Log.cxx
+0
-15
LogInit.cxx
src/LogInit.cxx
+0
-6
LogV.hxx
src/LogV.hxx
+1
-1
Main.cxx
src/Main.cxx
+0
-3
Mapper.cxx
src/Mapper.cxx
+0
-2
Mapper.hxx
src/Mapper.hxx
+0
-1
MixerControl.cxx
src/MixerControl.cxx
+0
-1
MixerControl.hxx
src/MixerControl.hxx
+1
-1
OutputAPI.hxx
src/OutputAPI.hxx
+4
-0
OutputAll.hxx
src/OutputAll.hxx
+1
-1
OutputCommand.cxx
src/OutputCommand.cxx
+0
-1
OutputControl.cxx
src/OutputControl.cxx
+0
-3
OutputControl.hxx
src/OutputControl.hxx
+16
-12
OutputInit.cxx
src/OutputInit.cxx
+0
-1
OutputState.cxx
src/OutputState.cxx
+0
-1
OutputThread.hxx
src/OutputThread.hxx
+2
-1
Page.hxx
src/Page.hxx
+0
-2
PlayerControl.cxx
src/PlayerControl.cxx
+1
-2
PlayerThread.cxx
src/PlayerThread.cxx
+0
-1
Playlist.cxx
src/Playlist.cxx
+0
-1
PlaylistAny.cxx
src/PlaylistAny.cxx
+0
-1
PlaylistFile.cxx
src/PlaylistFile.cxx
+0
-3
PlaylistFile.hxx
src/PlaylistFile.hxx
+0
-1
PlaylistGlobal.cxx
src/PlaylistGlobal.cxx
+0
-1
PlaylistPrint.cxx
src/PlaylistPrint.cxx
+0
-2
PlaylistQueue.cxx
src/PlaylistQueue.cxx
+0
-1
PlaylistState.hxx
src/PlaylistState.hxx
+3
-3
PlaylistVector.cxx
src/PlaylistVector.cxx
+0
-1
Queue.cxx
src/Queue.cxx
+0
-2
QueuePrint.cxx
src/QueuePrint.cxx
+0
-5
ReplayGainConfig.cxx
src/ReplayGainConfig.cxx
+1
-1
Song.hxx
src/Song.hxx
+1
-1
SongSave.cxx
src/SongSave.cxx
+0
-1
SongSort.cxx
src/SongSort.cxx
+0
-2
SongSort.hxx
src/SongSort.hxx
+1
-1
SongSticker.hxx
src/SongSticker.hxx
+1
-1
SongUpdate.cxx
src/SongUpdate.cxx
+0
-6
StateFile.cxx
src/StateFile.cxx
+1
-1
StickerDatabase.hxx
src/StickerDatabase.hxx
+4
-4
TagFile.hxx
src/TagFile.hxx
+1
-1
TextInputStream.cxx
src/TextInputStream.cxx
+0
-1
TextInputStream.hxx
src/TextInputStream.hxx
+0
-1
Timer.cxx
src/Timer.cxx
+0
-2
UpdateArchive.hxx
src/UpdateArchive.hxx
+0
-1
UpdateRemove.cxx
src/UpdateRemove.cxx
+0
-1
UpdateSong.cxx
src/UpdateSong.cxx
+0
-1
UpdateWalk.cxx
src/UpdateWalk.cxx
+0
-4
ZeroconfAvahi.cxx
src/ZeroconfAvahi.cxx
+0
-3
Bzip2ArchivePlugin.cxx
src/archive/Bzip2ArchivePlugin.cxx
+0
-2
Iso9660ArchivePlugin.cxx
src/archive/Iso9660ArchivePlugin.cxx
+0
-1
ZzipArchivePlugin.cxx
src/archive/ZzipArchivePlugin.cxx
+0
-2
DatabaseCommands.cxx
src/command/DatabaseCommands.cxx
+0
-4
MessageCommands.cxx
src/command/MessageCommands.cxx
+0
-1
OtherCommands.cxx
src/command/OtherCommands.cxx
+0
-4
OutputCommands.cxx
src/command/OutputCommands.cxx
+0
-2
PlaylistCommands.cxx
src/command/PlaylistCommands.cxx
+0
-3
StickerCommands.cxx
src/command/StickerCommands.cxx
+0
-2
ProxyDatabasePlugin.cxx
src/db/ProxyDatabasePlugin.cxx
+0
-1
SimpleDatabasePlugin.cxx
src/db/SimpleDatabasePlugin.cxx
+0
-1
DsdLib.cxx
src/decoder/DsdLib.cxx
+0
-2
DsdiffDecoderPlugin.cxx
src/decoder/DsdiffDecoderPlugin.cxx
+0
-3
DsfDecoderPlugin.cxx
src/decoder/DsfDecoderPlugin.cxx
+0
-3
FfmpegDecoderPlugin.cxx
src/decoder/FfmpegDecoderPlugin.cxx
+0
-1
FfmpegMetaData.hxx
src/decoder/FfmpegMetaData.hxx
+1
-3
FlacCommon.cxx
src/decoder/FlacCommon.cxx
+0
-4
FlacCommon.hxx
src/decoder/FlacCommon.hxx
+0
-1
FlacDecoderPlugin.cxx
src/decoder/FlacDecoderPlugin.cxx
+0
-4
FlacMetadata.cxx
src/decoder/FlacMetadata.cxx
+0
-2
FlacMetadata.hxx
src/decoder/FlacMetadata.hxx
+3
-3
MadDecoderPlugin.cxx
src/decoder/MadDecoderPlugin.cxx
+0
-1
MikmodDecoderPlugin.cxx
src/decoder/MikmodDecoderPlugin.cxx
+1
-1
MpcdecDecoderPlugin.cxx
src/decoder/MpcdecDecoderPlugin.cxx
+0
-2
Mpg123DecoderPlugin.cxx
src/decoder/Mpg123DecoderPlugin.cxx
+1
-2
OggCodec.cxx
src/decoder/OggCodec.cxx
+1
-0
OggCodec.hxx
src/decoder/OggCodec.hxx
+2
-1
OggFind.hxx
src/decoder/OggFind.hxx
+0
-1
OpusDecoderPlugin.cxx
src/decoder/OpusDecoderPlugin.cxx
+0
-2
OpusHead.cxx
src/decoder/OpusHead.cxx
+0
-1
PcmDecoderPlugin.cxx
src/decoder/PcmDecoderPlugin.cxx
+0
-2
VorbisComments.cxx
src/decoder/VorbisComments.cxx
+0
-2
VorbisComments.hxx
src/decoder/VorbisComments.hxx
+1
-1
VorbisDecoderPlugin.cxx
src/decoder/VorbisDecoderPlugin.cxx
+0
-3
VorbisDomain.hxx
src/decoder/VorbisDomain.hxx
+3
-1
FlacEncoderPlugin.cxx
src/encoder/FlacEncoderPlugin.cxx
+0
-1
VorbisEncoderPlugin.cxx
src/encoder/VorbisEncoderPlugin.cxx
+0
-2
BufferedSocket.cxx
src/event/BufferedSocket.cxx
+3
-0
BufferedSocket.hxx
src/event/BufferedSocket.hxx
+1
-1
FullyBufferedSocket.cxx
src/event/FullyBufferedSocket.cxx
+1
-0
FullyBufferedSocket.hxx
src/event/FullyBufferedSocket.hxx
+0
-1
IdleMonitor.cxx
src/event/IdleMonitor.cxx
+2
-0
MultiSocketMonitor.hxx
src/event/MultiSocketMonitor.hxx
+1
-0
ServerSocket.cxx
src/event/ServerSocket.cxx
+1
-0
SignalMonitor.cxx
src/event/SignalMonitor.cxx
+2
-0
SocketMonitor.cxx
src/event/SocketMonitor.cxx
+0
-1
ConvertFilterPlugin.cxx
src/filter/ConvertFilterPlugin.cxx
+0
-1
NormalizeFilterPlugin.cxx
src/filter/NormalizeFilterPlugin.cxx
+0
-1
RouteFilterPlugin.cxx
src/filter/RouteFilterPlugin.cxx
+0
-1
AllocatedPath.cxx
src/fs/AllocatedPath.cxx
+0
-1
AllocatedPath.hxx
src/fs/AllocatedPath.hxx
+0
-2
Charset.cxx
src/fs/Charset.cxx
+0
-2
Config.cxx
src/fs/Config.cxx
+0
-6
FileSystem.hxx
src/fs/FileSystem.hxx
+0
-1
Path.hxx
src/fs/Path.hxx
+0
-2
Traits.hxx
src/fs/Traits.hxx
+0
-2
ArchiveInputPlugin.cxx
src/input/ArchiveInputPlugin.cxx
+0
-1
FfmpegInputPlugin.cxx
src/input/FfmpegInputPlugin.cxx
+0
-1
FileInputPlugin.cxx
src/input/FileInputPlugin.cxx
+0
-2
MmsInputPlugin.cxx
src/input/MmsInputPlugin.cxx
+0
-3
RewindInputPlugin.cxx
src/input/RewindInputPlugin.cxx
+0
-1
ls.cxx
src/ls.cxx
+0
-2
OssMixerPlugin.cxx
src/mixer/OssMixerPlugin.cxx
+1
-3
PulseMixerPlugin.cxx
src/mixer/PulseMixerPlugin.cxx
+0
-2
PulseMixerPlugin.hxx
src/mixer/PulseMixerPlugin.hxx
+2
-5
RoarMixerPlugin.cxx
src/mixer/RoarMixerPlugin.cxx
+1
-1
FifoOutputPlugin.cxx
src/output/FifoOutputPlugin.cxx
+0
-3
JackOutputPlugin.cxx
src/output/JackOutputPlugin.cxx
+0
-4
NullOutputPlugin.cxx
src/output/NullOutputPlugin.cxx
+0
-2
PulseOutputPlugin.hxx
src/output/PulseOutputPlugin.hxx
+1
-1
PcmBuffer.cxx
src/pcm/PcmBuffer.cxx
+0
-1
PcmConvert.hxx
src/pcm/PcmConvert.hxx
+2
-1
PcmDsd.cxx
src/pcm/PcmDsd.cxx
+0
-1
PcmDsdUsb.cxx
src/pcm/PcmDsdUsb.cxx
+2
-0
PcmMix.cxx
src/pcm/PcmMix.cxx
+1
-0
AsxPlaylistPlugin.cxx
src/playlist/AsxPlaylistPlugin.cxx
+0
-1
CuePlaylistPlugin.cxx
src/playlist/CuePlaylistPlugin.cxx
+1
-4
EmbeddedCuePlaylistPlugin.cxx
src/playlist/EmbeddedCuePlaylistPlugin.cxx
+0
-2
RssPlaylistPlugin.cxx
src/playlist/RssPlaylistPlugin.cxx
+0
-1
XspfPlaylistPlugin.cxx
src/playlist/XspfPlaylistPlugin.cxx
+0
-1
EPollFD.hxx
src/system/EPollFD.hxx
+1
-0
Resolver.cxx
src/system/Resolver.cxx
+3
-0
Resolver.hxx
src/system/Resolver.hxx
+4
-3
SignalFD.cxx
src/system/SignalFD.cxx
+0
-1
SocketError.hxx
src/system/SocketError.hxx
+4
-2
Aiff.cxx
src/tag/Aiff.cxx
+0
-2
ApeTag.hxx
src/tag/ApeTag.hxx
+1
-1
Riff.cxx
src/tag/Riff.cxx
+0
-1
Tag.hxx
src/tag/Tag.hxx
+2
-2
TagConfig.cxx
src/tag/TagConfig.cxx
+0
-2
TagConfig.hxx
src/tag/TagConfig.hxx
+0
-2
TagId3.cxx
src/tag/TagId3.cxx
+0
-1
TagId3.hxx
src/tag/TagId3.hxx
+5
-5
TagRva2.cxx
src/tag/TagRva2.cxx
+2
-2
TagRva2.hxx
src/tag/TagRva2.hxx
+1
-1
Error.hxx
src/util/Error.hxx
+1
-0
FormatString.cxx
src/util/FormatString.cxx
+4
-1
Tokenizer.cxx
src/util/Tokenizer.cxx
+0
-3
No files found.
src/ArchiveFile.hxx
View file @
f90abe95
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
class
Mutex
;
class
Mutex
;
class
Cond
;
class
Cond
;
class
Error
;
class
Error
;
class
ArchiveVisitor
;
struct
InputStream
;
class
ArchiveFile
{
class
ArchiveFile
{
public
:
public
:
...
...
src/ArchiveLookup.cxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <string.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <errno.h>
gcc_pure
gcc_pure
...
...
src/ArchivePlugin.hxx
View file @
f90abe95
...
@@ -20,9 +20,7 @@
...
@@ -20,9 +20,7 @@
#ifndef MPD_ARCHIVE_PLUGIN_HXX
#ifndef MPD_ARCHIVE_PLUGIN_HXX
#define MPD_ARCHIVE_PLUGIN_HXX
#define MPD_ARCHIVE_PLUGIN_HXX
struct
InputStream
;
class
ArchiveFile
;
class
ArchiveFile
;
class
ArchiveVisitor
;
class
Error
;
class
Error
;
struct
archive_plugin
{
struct
archive_plugin
{
...
...
src/AvahiPoll.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "AvahiPoll.hxx"
#include "AvahiPoll.hxx"
#include "event/Loop.hxx"
#include "event/SocketMonitor.hxx"
#include "event/SocketMonitor.hxx"
#include "event/TimeoutMonitor.hxx"
#include "event/TimeoutMonitor.hxx"
...
...
src/Client.hxx
View file @
f90abe95
...
@@ -165,7 +165,7 @@ void client_manager_init(void);
...
@@ -165,7 +165,7 @@ void client_manager_init(void);
void
void
client_new
(
EventLoop
&
loop
,
Partition
&
partition
,
client_new
(
EventLoop
&
loop
,
Partition
&
partition
,
int
fd
,
const
s
truct
s
ockaddr
*
sa
,
size_t
sa_length
,
int
uid
);
int
fd
,
const
sockaddr
*
sa
,
size_t
sa_length
,
int
uid
);
/**
/**
* Write a C string to the client.
* Write a C string to the client.
...
...
src/ClientFile.cxx
View file @
f90abe95
...
@@ -24,11 +24,8 @@
...
@@ -24,11 +24,8 @@
#include "fs/Path.hxx"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <unistd.h>
#include <unistd.h>
bool
bool
...
...
src/ClientGlobal.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "ClientInternal.hxx"
#include "ClientInternal.hxx"
#include "ClientList.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
#define CLIENT_TIMEOUT_DEFAULT (60)
#define CLIENT_TIMEOUT_DEFAULT (60)
...
...
src/ClientNew.cxx
View file @
f90abe95
...
@@ -31,13 +31,11 @@
...
@@ -31,13 +31,11 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#ifdef WIN32
#ifdef WIN32
#include <winsock2.h>
#include <winsock2.h>
#else
#else
#include <sys/socket.h>
#include <sys/socket.h>
#endif
#endif
#include <unistd.h>
#ifdef HAVE_LIBWRAP
#ifdef HAVE_LIBWRAP
#include <tcpd.h>
#include <tcpd.h>
...
...
src/ClientRead.cxx
View file @
f90abe95
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "event/Loop.hxx"
#include "event/Loop.hxx"
#include "util/CharUtil.hxx"
#include "util/CharUtil.hxx"
#include <assert.h>
#include <string.h>
#include <string.h>
BufferedSocket
::
InputResult
BufferedSocket
::
InputResult
...
...
src/ClientSubscribe.cxx
View file @
f90abe95
...
@@ -22,11 +22,6 @@
...
@@ -22,11 +22,6 @@
#include "Idle.hxx"
#include "Idle.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
bool
Unsubscribe
(
const
char
*
channel
);
void
UnsubscribeAll
();
bool
PushMessage
(
const
ClientMessage
&
msg
);
Client
::
SubscribeResult
Client
::
SubscribeResult
Client
::
Subscribe
(
const
char
*
channel
)
Client
::
Subscribe
(
const
char
*
channel
)
...
...
src/CommandLine.cxx
View file @
f90abe95
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "util/OptionDef.hxx"
#include "util/OptionDef.hxx"
#include "util/OptionParser.hxx"
#include "util/OptionParser.hxx"
#include "system/FatalError.hxx"
#ifdef ENABLE_ENCODER
#ifdef ENABLE_ENCODER
#include "EncoderList.hxx"
#include "EncoderList.hxx"
...
...
src/ConfigData.cxx
View file @
f90abe95
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
int
int
...
...
src/ConfigFile.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "ConfigFile.hxx"
#include "ConfigFile.hxx"
#include "ConfigError.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigTemplates.hxx"
#include "ConfigTemplates.hxx"
#include "util/Tokenizer.hxx"
#include "util/Tokenizer.hxx"
...
@@ -32,9 +31,7 @@
...
@@ -32,9 +31,7 @@
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdio.h>
#include <errno.h>
#define MAX_STRING_SIZE MPD_PATH_MAX+80
#define MAX_STRING_SIZE MPD_PATH_MAX+80
...
...
src/ConfigGlobal.cxx
View file @
f90abe95
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
static
ConfigData
config_data
;
static
ConfigData
config_data
;
...
...
src/ConfigTemplates.hxx
View file @
f90abe95
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
#ifndef MPD_CONFIG_TEMPLATES_HXX
#ifndef MPD_CONFIG_TEMPLATES_HXX
#define MPD_CONFIG_TEMPLATES_HXX
#define MPD_CONFIG_TEMPLATES_HXX
#include "ConfigOption.hxx"
struct
ConfigTemplate
{
struct
ConfigTemplate
{
const
char
*
const
name
;
const
char
*
const
name
;
const
bool
repeatable
;
const
bool
repeatable
;
...
...
src/CrossFade.cxx
View file @
f90abe95
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
static
constexpr
Domain
cross_fade_domain
(
"cross_fade"
);
static
constexpr
Domain
cross_fade_domain
(
"cross_fade"
);
...
...
src/Daemon.cxx
View file @
f90abe95
...
@@ -30,9 +30,6 @@
...
@@ -30,9 +30,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
#ifndef WIN32
#ifndef WIN32
...
...
src/DatabaseGlue.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "DatabaseGlue.hxx"
#include "DatabaseGlue.hxx"
#include "DatabaseSimple.hxx"
#include "DatabaseSimple.hxx"
#include "DatabaseRegistry.hxx"
#include "DatabaseRegistry.hxx"
#include "DatabaseSave.hxx"
#include "DatabaseError.hxx"
#include "DatabaseError.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
@@ -30,13 +29,8 @@
...
@@ -30,13 +29,8 @@
#include "DatabasePlugin.hxx"
#include "DatabasePlugin.hxx"
#include "db/SimpleDatabasePlugin.hxx"
#include "db/SimpleDatabasePlugin.hxx"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <errno.h>
static
Database
*
db
;
static
Database
*
db
;
static
bool
db_is_open
;
static
bool
db_is_open
;
...
...
src/DatabaseHelpers.hxx
View file @
f90abe95
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "DatabaseVisitor.hxx"
#include "DatabaseVisitor.hxx"
#include "tag/TagType.h"
#include "tag/TagType.h"
#include "Compiler.h"
class
Error
;
class
Error
;
class
Database
;
class
Database
;
...
...
src/DatabaseLock.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "DatabaseLock.hxx"
#include "DatabaseLock.hxx"
#include "Compiler.h"
Mutex
db_mutex
;
Mutex
db_mutex
;
...
...
src/DatabasePrint.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "DatabasePrint.hxx"
#include "DatabasePrint.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseSelection.hxx"
#include "SongFilter.hxx"
#include "SongFilter.hxx"
#include "PlaylistVector.hxx"
#include "SongPrint.hxx"
#include "SongPrint.hxx"
#include "TimePrint.hxx"
#include "TimePrint.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
...
...
src/DatabasePrint.hxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
class
SongFilter
;
class
SongFilter
;
struct
DatabaseSelection
;
struct
DatabaseSelection
;
struct
db_visitor
;
class
Client
;
class
Client
;
class
Error
;
class
Error
;
...
...
src/DatabaseQueue.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "DatabaseQueue.hxx"
#include "DatabaseQueue.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseGlue.hxx"
#include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx"
#include "DatabasePlugin.hxx"
#include "Partition.hxx"
#include "Partition.hxx"
...
...
src/DatabaseSave.cxx
View file @
f90abe95
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "DatabaseError.hxx"
#include "DatabaseError.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
#include "DirectorySave.hxx"
#include "DirectorySave.hxx"
#include "Song.hxx"
#include "TextFile.hxx"
#include "TextFile.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "tag/TagSettings.h"
#include "tag/TagSettings.h"
...
@@ -33,7 +32,6 @@
...
@@ -33,7 +32,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/DecoderAPI.cxx
View file @
f90abe95
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <math.h>
#include <math.h>
...
...
src/DecoderAPI.hxx
View file @
f90abe95
...
@@ -27,6 +27,8 @@
...
@@ -27,6 +27,8 @@
#ifndef MPD_DECODER_API_HXX
#ifndef MPD_DECODER_API_HXX
#define MPD_DECODER_API_HXX
#define MPD_DECODER_API_HXX
// IWYU pragma: begin_exports
#include "check.h"
#include "check.h"
#include "DecoderCommand.hxx"
#include "DecoderCommand.hxx"
#include "DecoderPlugin.hxx"
#include "DecoderPlugin.hxx"
...
@@ -36,6 +38,8 @@
...
@@ -36,6 +38,8 @@
#include "MixRampInfo.hxx"
#include "MixRampInfo.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
// IWYU pragma: end_exports
/**
/**
* Notify the player thread that it has finished initialization and
* Notify the player thread that it has finished initialization and
* that it has read the song's meta data.
* that it has read the song's meta data.
...
...
src/DecoderControl.cxx
View file @
f90abe95
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "MusicPipe.hxx"
#include "MusicPipe.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include <glib.h>
#include <assert.h>
#include <assert.h>
DecoderControl
::
DecoderControl
(
Mutex
&
_mutex
,
Cond
&
_client_cond
)
DecoderControl
::
DecoderControl
(
Mutex
&
_mutex
,
Cond
&
_client_cond
)
...
...
src/DecoderInternal.hxx
View file @
f90abe95
...
@@ -20,13 +20,11 @@
...
@@ -20,13 +20,11 @@
#ifndef MPD_DECODER_INTERNAL_HXX
#ifndef MPD_DECODER_INTERNAL_HXX
#define MPD_DECODER_INTERNAL_HXX
#define MPD_DECODER_INTERNAL_HXX
#include "DecoderCommand.hxx"
#include "ReplayGainInfo.hxx"
#include "ReplayGainInfo.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
class
PcmConvert
;
class
PcmConvert
;
struct
DecoderControl
;
struct
DecoderControl
;
struct
InputStream
;
struct
Tag
;
struct
Tag
;
struct
Decoder
{
struct
Decoder
{
...
...
src/DecoderPlugin.hxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
struct
config_param
;
struct
config_param
;
struct
InputStream
;
struct
InputStream
;
struct
Tag
;
struct
tag_handler
;
struct
tag_handler
;
/**
/**
...
...
src/DecoderThread.cxx
View file @
f90abe95
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include "fs/Traits.hxx"
#include "fs/Traits.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "DecoderAPI.hxx"
#include "DecoderAPI.hxx"
#include "tag/Tag.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "DecoderList.hxx"
#include "DecoderList.hxx"
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
...
...
src/DirectorySave.cxx
View file @
f90abe95
...
@@ -30,9 +30,6 @@
...
@@ -30,9 +30,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#define DIRECTORY_DIR "directory: "
#define DIRECTORY_DIR "directory: "
#define DIRECTORY_MTIME "mtime: "
#define DIRECTORY_MTIME "mtime: "
#define DIRECTORY_BEGIN "begin: "
#define DIRECTORY_BEGIN "begin: "
...
...
src/EncoderAPI.hxx
View file @
f90abe95
...
@@ -25,9 +25,13 @@
...
@@ -25,9 +25,13 @@
#ifndef MPD_ENCODER_API_HXX
#ifndef MPD_ENCODER_API_HXX
#define MPD_ENCODER_API_HXX
#define MPD_ENCODER_API_HXX
// IWYU pragma: begin_exports
#include "EncoderPlugin.hxx"
#include "EncoderPlugin.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
// IWYU pragma: end_exports
#endif
#endif
src/FilterConfig.cxx
View file @
f90abe95
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#include "FilterConfig.hxx"
#include "FilterConfig.hxx"
#include "filter/ChainFilterPlugin.hxx"
#include "filter/ChainFilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigOption.hxx"
#include "ConfigOption.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
...
...
src/FilterPlugin.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "FilterRegistry.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigError.hxx"
#include "ConfigError.hxx"
...
...
src/FilterRegistry.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "FilterRegistry.hxx"
#include "FilterRegistry.hxx"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include <stddef.h>
#include <string.h>
#include <string.h>
const
struct
filter_plugin
*
const
filter_plugins
[]
=
{
const
struct
filter_plugin
*
const
filter_plugins
[]
=
{
...
...
src/GlobalEvents.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "GlobalEvents.hxx"
#include "GlobalEvents.hxx"
#include "util/Manual.hxx"
#include "util/Manual.hxx"
#include "event/DeferredMonitor.hxx"
#include "event/DeferredMonitor.hxx"
#include "Compiler.h"
#include <atomic>
#include <atomic>
...
...
src/IcyMetaDataServer.cxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
char
*
char
*
...
...
src/InotifyQueue.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "InotifyQueue.hxx"
#include "InotifyQueue.hxx"
#include "InotifyDomain.hxx"
#include "InotifyDomain.hxx"
#include "UpdateGlue.hxx"
#include "UpdateGlue.hxx"
#include "event/Loop.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <string.h>
#include <string.h>
...
...
src/InotifySource.hxx
View file @
f90abe95
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "event/SocketMonitor.hxx"
#include "event/SocketMonitor.hxx"
#include "util/FifoBuffer.hxx"
#include "util/FifoBuffer.hxx"
#include "Compiler.h"
class
Error
;
class
Error
;
...
...
src/Log.cxx
View file @
f90abe95
...
@@ -19,28 +19,13 @@
...
@@ -19,28 +19,13 @@
#include "config.h"
#include "config.h"
#include "LogV.hxx"
#include "LogV.hxx"
#include "ConfigData.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigOption.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "system/FatalError.hxx"
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <errno.h>
static
GLogLevelFlags
static
GLogLevelFlags
...
...
src/LogInit.cxx
View file @
f90abe95
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigOption.hxx"
#include "ConfigOption.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "fs/FileSystem.hxx"
...
@@ -33,16 +32,11 @@
...
@@ -33,16 +32,11 @@
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <string.h>
#include <stdarg.h>
#include <fcntl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <time.h>
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#include <glib.h>
#include <glib.h>
#ifdef HAVE_SYSLOG
#ifdef HAVE_SYSLOG
...
...
src/LogV.hxx
View file @
f90abe95
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_LOGV_HXX
#ifndef MPD_LOGV_HXX
#define MPD_LOGV_HXX
#define MPD_LOGV_HXX
#include "Log.hxx"
#include "Log.hxx"
// IWYU pragma: export
#include <stdarg.h>
#include <stdarg.h>
...
...
src/Main.cxx
View file @
f90abe95
...
@@ -80,10 +80,7 @@
...
@@ -80,10 +80,7 @@
#include <glib.h>
#include <glib.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#ifdef HAVE_LOCALE_H
#ifdef HAVE_LOCALE_H
#include <locale.h>
#include <locale.h>
...
...
src/Mapper.cxx
View file @
f90abe95
...
@@ -36,9 +36,7 @@
...
@@ -36,9 +36,7 @@
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <errno.h>
#include <dirent.h>
static
constexpr
Domain
mapper_domain
(
"mapper"
);
static
constexpr
Domain
mapper_domain
(
"mapper"
);
...
...
src/Mapper.hxx
View file @
f90abe95
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
#define PLAYLIST_FILE_SUFFIX ".m3u"
#define PLAYLIST_FILE_SUFFIX ".m3u"
class
Path
;
class
AllocatedPath
;
class
AllocatedPath
;
struct
Directory
;
struct
Directory
;
struct
Song
;
struct
Song
;
...
...
src/MixerControl.cxx
View file @
f90abe95
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "util/Error.hxx"
#include "util/Error.hxx"
#include <assert.h>
#include <assert.h>
#include <stddef.h>
Mixer
*
Mixer
*
mixer_new
(
const
struct
mixer_plugin
*
plugin
,
void
*
ao
,
mixer_new
(
const
struct
mixer_plugin
*
plugin
,
void
*
ao
,
...
...
src/MixerControl.hxx
View file @
f90abe95
...
@@ -31,7 +31,7 @@ struct mixer_plugin;
...
@@ -31,7 +31,7 @@ struct mixer_plugin;
struct
config_param
;
struct
config_param
;
Mixer
*
Mixer
*
mixer_new
(
const
struct
mixer_plugin
*
plugin
,
void
*
ao
,
mixer_new
(
const
mixer_plugin
*
plugin
,
void
*
ao
,
const
config_param
&
param
,
const
config_param
&
param
,
Error
&
error
);
Error
&
error
);
...
...
src/OutputAPI.hxx
View file @
f90abe95
...
@@ -20,10 +20,14 @@
...
@@ -20,10 +20,14 @@
#ifndef MPD_OUTPUT_API_HXX
#ifndef MPD_OUTPUT_API_HXX
#define MPD_OUTPUT_API_HxX
#define MPD_OUTPUT_API_HxX
// IWYU pragma: begin_exports
#include "OutputPlugin.hxx"
#include "OutputPlugin.hxx"
#include "OutputInternal.hxx"
#include "OutputInternal.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
// IWYU pragma: end_exports
#endif
#endif
src/OutputAll.hxx
View file @
f90abe95
...
@@ -115,7 +115,7 @@ audio_output_all_set_replay_gain_mode(ReplayGainMode mode);
...
@@ -115,7 +115,7 @@ audio_output_all_set_replay_gain_mode(ReplayGainMode mode);
* (all closed then)
* (all closed then)
*/
*/
bool
bool
audio_output_all_play
(
struct
music_chunk
*
chunk
,
Error
&
error
);
audio_output_all_play
(
music_chunk
*
chunk
,
Error
&
error
);
/**
/**
* Checks if the output devices have drained their music pipe, and
* Checks if the output devices have drained their music pipe, and
...
...
src/OutputCommand.cxx
View file @
f90abe95
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "OutputCommand.hxx"
#include "OutputCommand.hxx"
#include "OutputAll.hxx"
#include "OutputAll.hxx"
#include "OutputInternal.hxx"
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "PlayerControl.hxx"
#include "PlayerControl.hxx"
#include "MixerControl.hxx"
#include "MixerControl.hxx"
#include "Idle.hxx"
#include "Idle.hxx"
...
...
src/OutputControl.cxx
View file @
f90abe95
...
@@ -24,16 +24,13 @@
...
@@ -24,16 +24,13 @@
#include "OutputInternal.hxx"
#include "OutputInternal.hxx"
#include "OutputPlugin.hxx"
#include "OutputPlugin.hxx"
#include "OutputError.hxx"
#include "OutputError.hxx"
#include "MixerPlugin.hxx"
#include "MixerControl.hxx"
#include "MixerControl.hxx"
#include "notify.hxx"
#include "notify.hxx"
#include "filter/ReplayGainFilterPlugin.hxx"
#include "filter/ReplayGainFilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
/** after a failure, wait this number of seconds before
/** after a failure, wait this number of seconds before
automatically reopening the device */
automatically reopening the device */
...
...
src/OutputControl.hxx
View file @
f90abe95
...
@@ -30,20 +30,20 @@ struct config_param;
...
@@ -30,20 +30,20 @@ struct config_param;
class
MusicPipe
;
class
MusicPipe
;
void
void
audio_output_set_replay_gain_mode
(
struct
audio_output
*
ao
,
audio_output_set_replay_gain_mode
(
audio_output
*
ao
,
ReplayGainMode
mode
);
ReplayGainMode
mode
);
/**
/**
* Enables the device.
* Enables the device.
*/
*/
void
void
audio_output_enable
(
struct
audio_output
*
ao
);
audio_output_enable
(
audio_output
*
ao
);
/**
/**
* Disables the device.
* Disables the device.
*/
*/
void
void
audio_output_disable
(
struct
audio_output
*
ao
);
audio_output_disable
(
audio_output
*
ao
);
/**
/**
* Opens or closes the device, depending on the "enabled" flag.
* Opens or closes the device, depending on the "enabled" flag.
...
@@ -51,40 +51,44 @@ audio_output_disable(struct audio_output *ao);
...
@@ -51,40 +51,44 @@ audio_output_disable(struct audio_output *ao);
* @return true if the device is open
* @return true if the device is open
*/
*/
bool
bool
audio_output_update
(
struct
audio_output
*
ao
,
audio_output_update
(
audio_output
*
ao
,
AudioFormat
audio_format
,
AudioFormat
audio_format
,
const
MusicPipe
&
mp
);
const
MusicPipe
&
mp
);
void
void
audio_output_play
(
struct
audio_output
*
ao
);
audio_output_play
(
audio_output
*
ao
);
void
audio_output_pause
(
struct
audio_output
*
ao
);
void
audio_output_pause
(
audio_output
*
ao
);
void
void
audio_output_drain_async
(
struct
audio_output
*
ao
);
audio_output_drain_async
(
audio_output
*
ao
);
/**
/**
* Clear the "allow_play" flag and send the "CANCEL" command
* Clear the "allow_play" flag and send the "CANCEL" command
* asynchronously. To finish the operation, the caller has to call
* asynchronously. To finish the operation, the caller has to call
* audio_output_allow_play().
* audio_output_allow_play().
*/
*/
void
audio_output_cancel
(
struct
audio_output
*
ao
);
void
audio_output_cancel
(
audio_output
*
ao
);
/**
/**
* Set the "allow_play" and signal the thread.
* Set the "allow_play" and signal the thread.
*/
*/
void
void
audio_output_allow_play
(
struct
audio_output
*
ao
);
audio_output_allow_play
(
audio_output
*
ao
);
void
audio_output_close
(
struct
audio_output
*
ao
);
void
audio_output_close
(
audio_output
*
ao
);
/**
/**
* Closes the audio output, but if the "always_on" flag is set, put it
* Closes the audio output, but if the "always_on" flag is set, put it
* into pause mode instead.
* into pause mode instead.
*/
*/
void
void
audio_output_release
(
struct
audio_output
*
ao
);
audio_output_release
(
audio_output
*
ao
);
void
audio_output_finish
(
struct
audio_output
*
ao
);
void
audio_output_finish
(
audio_output
*
ao
);
#endif
#endif
src/OutputInit.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "OutputInternal.hxx"
#include "OutputInternal.hxx"
#include "OutputControl.hxx"
#include "OutputList.hxx"
#include "OutputList.hxx"
#include "OutputError.hxx"
#include "OutputError.hxx"
#include "OutputAPI.hxx"
#include "OutputAPI.hxx"
...
...
src/OutputState.cxx
View file @
f90abe95
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#define AUDIO_DEVICE_STATE "audio_device_state:"
#define AUDIO_DEVICE_STATE "audio_device_state:"
...
...
src/OutputThread.hxx
View file @
f90abe95
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
struct
audio_output
;
struct
audio_output
;
void
audio_output_thread_start
(
struct
audio_output
*
ao
);
void
audio_output_thread_start
(
audio_output
*
ao
);
#endif
#endif
src/Page.hxx
View file @
f90abe95
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#include "util/RefCount.hxx"
#include "util/RefCount.hxx"
#include <algorithm>
#include <stddef.h>
#include <stddef.h>
/**
/**
...
...
src/PlayerControl.cxx
View file @
f90abe95
...
@@ -21,9 +21,8 @@
...
@@ -21,9 +21,8 @@
#include "PlayerControl.hxx"
#include "PlayerControl.hxx"
#include "Idle.hxx"
#include "Idle.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "DecoderControl.hxx"
#include <
cmath
>
#include <
algorithm
>
#include <assert.h>
#include <assert.h>
...
...
src/PlayerThread.cxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include "MusicBuffer.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "Main.hxx"
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include "CrossFade.hxx"
#include "CrossFade.hxx"
#include "PlayerControl.hxx"
#include "PlayerControl.hxx"
...
...
src/Playlist.cxx
View file @
f90abe95
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "PlaylistError.hxx"
#include "PlaylistError.hxx"
#include "PlayerControl.hxx"
#include "PlayerControl.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "tag/Tag.hxx"
#include "Idle.hxx"
#include "Idle.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/PlaylistAny.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "PlaylistAny.hxx"
#include "PlaylistAny.hxx"
#include "PlaylistMapper.hxx"
#include "PlaylistMapper.hxx"
#include "PlaylistRegistry.hxx"
#include "PlaylistRegistry.hxx"
#include "PlaylistError.hxx"
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
...
...
src/PlaylistFile.cxx
View file @
f90abe95
...
@@ -43,10 +43,7 @@
...
@@ -43,10 +43,7 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
...
...
src/PlaylistFile.hxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <string>
#include <string>
struct
Song
;
struct
Song
;
struct
PlaylistInfo
;
class
PlaylistVector
;
class
PlaylistVector
;
class
Error
;
class
Error
;
...
...
src/PlaylistGlobal.cxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "config.h"
#include "config.h"
#include "PlaylistGlobal.hxx"
#include "PlaylistGlobal.hxx"
#include "Playlist.hxx"
#include "Main.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "Instance.hxx"
#include "GlobalEvents.hxx"
#include "GlobalEvents.hxx"
...
...
src/PlaylistPrint.cxx
View file @
f90abe95
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#include "PlaylistAny.hxx"
#include "PlaylistAny.hxx"
#include "PlaylistSong.hxx"
#include "PlaylistSong.hxx"
#include "Playlist.hxx"
#include "Playlist.hxx"
#include "PlaylistRegistry.hxx"
#include "PlaylistPlugin.hxx"
#include "QueuePrint.hxx"
#include "QueuePrint.hxx"
#include "SongEnumerator.hxx"
#include "SongEnumerator.hxx"
#include "SongPrint.hxx"
#include "SongPrint.hxx"
...
...
src/PlaylistQueue.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "PlaylistQueue.hxx"
#include "PlaylistQueue.hxx"
#include "PlaylistPlugin.hxx"
#include "PlaylistAny.hxx"
#include "PlaylistAny.hxx"
#include "PlaylistSong.hxx"
#include "PlaylistSong.hxx"
#include "Playlist.hxx"
#include "Playlist.hxx"
...
...
src/PlaylistState.hxx
View file @
f90abe95
...
@@ -32,12 +32,12 @@ struct PlayerControl;
...
@@ -32,12 +32,12 @@ struct PlayerControl;
class
TextFile
;
class
TextFile
;
void
void
playlist_state_save
(
FILE
*
fp
,
const
struct
playlist
&
playlist
,
playlist_state_save
(
FILE
*
fp
,
const
playlist
&
playlist
,
PlayerControl
&
pc
);
PlayerControl
&
pc
);
bool
bool
playlist_state_restore
(
const
char
*
line
,
TextFile
&
file
,
playlist_state_restore
(
const
char
*
line
,
TextFile
&
file
,
struct
playlist
&
playlist
,
PlayerControl
&
pc
);
playlist
&
playlist
,
PlayerControl
&
pc
);
/**
/**
* Generates a hash number for the current state of the playlist and
* Generates a hash number for the current state of the playlist and
...
@@ -46,7 +46,7 @@ playlist_state_restore(const char *line, TextFile &file,
...
@@ -46,7 +46,7 @@ playlist_state_restore(const char *line, TextFile &file,
* be saved.
* be saved.
*/
*/
unsigned
unsigned
playlist_state_get_hash
(
const
struct
playlist
&
playlist
,
playlist_state_get_hash
(
const
playlist
&
playlist
,
PlayerControl
&
c
);
PlayerControl
&
c
);
#endif
#endif
src/PlaylistVector.cxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <algorithm>
#include <algorithm>
#include <assert.h>
#include <assert.h>
#include <string.h>
PlaylistVector
::
iterator
PlaylistVector
::
iterator
PlaylistVector
::
find
(
const
char
*
name
)
PlaylistVector
::
find
(
const
char
*
name
)
...
...
src/Queue.cxx
View file @
f90abe95
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#include "Queue.hxx"
#include "Queue.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include <stdlib.h>
queue
::
queue
(
unsigned
_max_length
)
queue
::
queue
(
unsigned
_max_length
)
:
max_length
(
_max_length
),
length
(
0
),
:
max_length
(
_max_length
),
length
(
0
),
version
(
1
),
version
(
1
),
...
...
src/QueuePrint.cxx
View file @
f90abe95
...
@@ -22,13 +22,8 @@
...
@@ -22,13 +22,8 @@
#include "Queue.hxx"
#include "Queue.hxx"
#include "SongFilter.hxx"
#include "SongFilter.hxx"
#include "SongPrint.hxx"
#include "SongPrint.hxx"
#include "Mapper.hxx"
#include "Client.hxx"
#include "Client.hxx"
extern
"C"
{
#include "Song.hxx"
}
/**
/**
* Send detailed information about a range of songs in the queue to a
* Send detailed information about a range of songs in the queue to a
* client.
* client.
...
...
src/ReplayGainConfig.cxx
View file @
f90abe95
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
#include "Idle.hxx"
#include "Idle.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
#include "Playlist.hxx"
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include <assert.h>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <math.h>
ReplayGainMode
replay_gain_mode
=
REPLAY_GAIN_OFF
;
ReplayGainMode
replay_gain_mode
=
REPLAY_GAIN_OFF
;
...
...
src/Song.hxx
View file @
f90abe95
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include <string>
#include <string>
#include <assert.h>
#include <assert.h>
#include <
sys/
time.h>
#include <time.h>
#define SONG_FILE "file: "
#define SONG_FILE "file: "
#define SONG_TIME "Time: "
#define SONG_TIME "Time: "
...
...
src/SongSave.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "SongSave.hxx"
#include "SongSave.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "TagSave.hxx"
#include "TagSave.hxx"
#include "Directory.hxx"
#include "TextFile.hxx"
#include "TextFile.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
...
...
src/SongSort.cxx
View file @
f90abe95
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "config.h"
#include "SongSort.hxx"
#include "SongSort.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "util/list.h"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
extern
"C"
{
extern
"C"
{
...
@@ -29,7 +28,6 @@ extern "C" {
...
@@ -29,7 +28,6 @@ extern "C" {
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
static
const
char
*
static
const
char
*
...
...
src/SongSort.hxx
View file @
f90abe95
...
@@ -23,6 +23,6 @@
...
@@ -23,6 +23,6 @@
struct
list_head
;
struct
list_head
;
void
void
song_list_sort
(
struct
list_head
*
songs
);
song_list_sort
(
list_head
*
songs
);
#endif
#endif
src/SongSticker.hxx
View file @
f90abe95
...
@@ -63,7 +63,7 @@ sticker_song_delete_value(const Song *song, const char *name);
...
@@ -63,7 +63,7 @@ sticker_song_delete_value(const Song *song, const char *name);
* @param song the song object
* @param song the song object
* @return a sticker object, or NULL on error or if there is no sticker
* @return a sticker object, or NULL on error or if there is no sticker
*/
*/
st
ruct
st
icker
*
sticker
*
sticker_song_get
(
const
Song
*
song
);
sticker_song_get
(
const
Song
*
song
);
/**
/**
...
...
src/SongUpdate.cxx
View file @
f90abe95
...
@@ -20,14 +20,11 @@
...
@@ -20,14 +20,11 @@
#include "config.h"
/* must be first for large file support */
#include "config.h"
/* must be first for large file support */
#include "Song.hxx"
#include "Song.hxx"
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
#include "Mapper.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx"
#include "fs/Traits.hxx"
#include "fs/FileSystem.hxx"
#include "fs/FileSystem.hxx"
#include "InputStream.hxx"
#include "DecoderPlugin.hxx"
#include "DecoderList.hxx"
#include "DecoderList.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
...
@@ -35,13 +32,10 @@
...
@@ -35,13 +32,10 @@
#include "tag/TagId3.hxx"
#include "tag/TagId3.hxx"
#include "tag/ApeTag.hxx"
#include "tag/ApeTag.hxx"
#include "TagFile.hxx"
#include "TagFile.hxx"
#include "thread/Cond.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <stdio.h>
Song
*
Song
*
Song
::
LoadFile
(
const
char
*
path_utf8
,
Directory
*
parent
)
Song
::
LoadFile
(
const
char
*
path_utf8
,
Directory
*
parent
)
...
...
src/StateFile.cxx
View file @
f90abe95
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "TextFile.hxx"
#include "TextFile.hxx"
#include "Partition.hxx"
#include "Partition.hxx"
#include "Volume.hxx"
#include "Volume.hxx"
#include "event/Loop.hxx"
#include "fs/FileSystem.hxx"
#include "fs/FileSystem.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/StickerDatabase.hxx
View file @
f90abe95
...
@@ -106,7 +106,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name);
...
@@ -106,7 +106,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name);
* @param sticker the sticker object to be freed
* @param sticker the sticker object to be freed
*/
*/
void
void
sticker_free
(
st
ruct
st
icker
*
sticker
);
sticker_free
(
sticker
*
sticker
);
/**
/**
* Determines a single value in a sticker.
* Determines a single value in a sticker.
...
@@ -117,7 +117,7 @@ sticker_free(struct sticker *sticker);
...
@@ -117,7 +117,7 @@ sticker_free(struct sticker *sticker);
*/
*/
gcc_pure
gcc_pure
const
char
*
const
char
*
sticker_get_value
(
const
st
ruct
st
icker
&
sticker
,
const
char
*
name
);
sticker_get_value
(
const
sticker
&
sticker
,
const
char
*
name
);
/**
/**
* Iterates over all sticker items in a sticker.
* Iterates over all sticker items in a sticker.
...
@@ -127,7 +127,7 @@ sticker_get_value(const struct sticker &sticker, const char *name);
...
@@ -127,7 +127,7 @@ sticker_get_value(const struct sticker &sticker, const char *name);
* @param user_data an opaque pointer for the callback function
* @param user_data an opaque pointer for the callback function
*/
*/
void
void
sticker_foreach
(
const
st
ruct
st
icker
&
sticker
,
sticker_foreach
(
const
sticker
&
sticker
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
void
*
user_data
),
void
*
user_data
),
void
*
user_data
);
void
*
user_data
);
...
@@ -139,7 +139,7 @@ sticker_foreach(const struct sticker &sticker,
...
@@ -139,7 +139,7 @@ sticker_foreach(const struct sticker &sticker,
* @param uri the URI of the resource, e.g. the song path
* @param uri the URI of the resource, e.g. the song path
* @return a sticker object, or nullptr on error or if there is no sticker
* @return a sticker object, or nullptr on error or if there is no sticker
*/
*/
st
ruct
st
icker
*
sticker
*
sticker_load
(
const
char
*
type
,
const
char
*
uri
);
sticker_load
(
const
char
*
type
,
const
char
*
uri
);
/**
/**
...
...
src/TagFile.hxx
View file @
f90abe95
...
@@ -31,6 +31,6 @@ struct tag_handler;
...
@@ -31,6 +31,6 @@ struct tag_handler;
*/
*/
bool
bool
tag_file_scan
(
Path
path
,
tag_file_scan
(
Path
path
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
#endif
#endif
src/TextInputStream.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "TextInputStream.hxx"
#include "TextInputStream.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "util/CharUtil.hxx"
#include "util/CharUtil.hxx"
#include "util/fifo_buffer.h"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/TextInputStream.hxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <string>
#include <string>
struct
InputStream
;
struct
InputStream
;
struct
fifo_buffer
;
class
TextInputStream
{
class
TextInputStream
{
InputStream
&
is
;
InputStream
&
is
;
...
...
src/Timer.cxx
View file @
f90abe95
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#include <limits>
#include <limits>
#include <assert.h>
#include <assert.h>
#include <limits.h>
#include <stddef.h>
Timer
::
Timer
(
const
AudioFormat
af
)
Timer
::
Timer
(
const
AudioFormat
af
)
:
time
(
0
),
:
time
(
0
),
...
...
src/UpdateArchive.hxx
View file @
f90abe95
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <sys/stat.h>
#include <sys/stat.h>
struct
Directory
;
struct
Directory
;
struct
archive_plugin
;
#ifdef ENABLE_ARCHIVE
#ifdef ENABLE_ARCHIVE
...
...
src/UpdateRemove.cxx
View file @
f90abe95
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "config.h"
/* must be first for large file support */
#include "config.h"
/* must be first for large file support */
#include "UpdateRemove.hxx"
#include "UpdateRemove.hxx"
#include "UpdateDomain.hxx"
#include "UpdateDomain.hxx"
#include "Playlist.hxx"
#include "GlobalEvents.hxx"
#include "GlobalEvents.hxx"
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "thread/Cond.hxx"
...
...
src/UpdateSong.cxx
View file @
f90abe95
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "DatabaseLock.hxx"
#include "DatabaseLock.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "DecoderPlugin.hxx"
#include "DecoderList.hxx"
#include "DecoderList.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/UpdateWalk.cxx
View file @
f90abe95
...
@@ -44,12 +44,8 @@
...
@@ -44,12 +44,8 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <errno.h>
bool
walk_discard
;
bool
walk_discard
;
...
...
src/ZeroconfAvahi.cxx
View file @
f90abe95
...
@@ -29,14 +29,11 @@
...
@@ -29,14 +29,11 @@
#include <avahi-client/client.h>
#include <avahi-client/client.h>
#include <avahi-client/publish.h>
#include <avahi-client/publish.h>
#include <avahi-common/watch.h>
#include <avahi-common/alternative.h>
#include <avahi-common/alternative.h>
#include <avahi-common/domain.h>
#include <avahi-common/domain.h>
#include <avahi-common/malloc.h>
#include <avahi-common/malloc.h>
#include <avahi-common/error.h>
#include <avahi-common/error.h>
#include <stddef.h>
static
constexpr
Domain
avahi_domain
(
"avahi"
);
static
constexpr
Domain
avahi_domain
(
"avahi"
);
static
char
*
avahiName
;
static
char
*
avahiName
;
...
...
src/archive/Bzip2ArchivePlugin.cxx
View file @
f90abe95
...
@@ -35,9 +35,7 @@
...
@@ -35,9 +35,7 @@
#include <bzlib.h>
#include <bzlib.h>
#include <stdint.h>
#include <stddef.h>
#include <stddef.h>
#include <string.h>
#ifdef HAVE_OLDER_BZIP2
#ifdef HAVE_OLDER_BZIP2
#define BZ2_bzDecompressInit bzDecompressInit
#define BZ2_bzDecompressInit bzDecompressInit
...
...
src/archive/Iso9660ArchivePlugin.cxx
View file @
f90abe95
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include <cdio/cdio.h>
#include <cdio/iso9660.h>
#include <cdio/iso9660.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/archive/ZzipArchivePlugin.cxx
View file @
f90abe95
...
@@ -34,8 +34,6 @@
...
@@ -34,8 +34,6 @@
#include <zzip/zzip.h>
#include <zzip/zzip.h>
#include <string.h>
class
ZzipArchiveFile
final
:
public
ArchiveFile
{
class
ZzipArchiveFile
final
:
public
ArchiveFile
{
public
:
public
:
RefCount
ref
;
RefCount
ref
;
...
...
src/command/DatabaseCommands.cxx
View file @
f90abe95
...
@@ -26,14 +26,10 @@
...
@@ -26,14 +26,10 @@
#include "CommandError.hxx"
#include "CommandError.hxx"
#include "Client.hxx"
#include "Client.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "SongFilter.hxx"
#include "SongFilter.hxx"
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include <assert.h>
#include <string.h>
CommandResult
CommandResult
handle_lsinfo2
(
Client
&
client
,
int
argc
,
char
*
argv
[])
handle_lsinfo2
(
Client
&
client
,
int
argc
,
char
*
argv
[])
{
{
...
...
src/command/MessageCommands.cxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "Instance.hxx"
#include "Instance.hxx"
#include "Main.hxx"
#include "Main.hxx"
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx"
#include <set>
#include <set>
#include <string>
#include <string>
...
...
src/command/OtherCommands.cxx
View file @
f90abe95
...
@@ -44,10 +44,6 @@
...
@@ -44,10 +44,6 @@
#include "Client.hxx"
#include "Client.hxx"
#include "Idle.hxx"
#include "Idle.hxx"
#ifdef ENABLE_SQLITE
#include "StickerDatabase.hxx"
#endif
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
...
src/command/OutputCommands.cxx
View file @
f90abe95
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx"
#include "protocol/ArgParser.hxx"
#include <string.h>
CommandResult
CommandResult
handle_enableoutput
(
Client
&
client
,
gcc_unused
int
argc
,
char
*
argv
[])
handle_enableoutput
(
Client
&
client
,
gcc_unused
int
argc
,
char
*
argv
[])
{
{
...
...
src/command/PlaylistCommands.cxx
View file @
f90abe95
...
@@ -35,9 +35,6 @@
...
@@ -35,9 +35,6 @@
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include <assert.h>
#include <stdlib.h>
static
void
static
void
print_spl_list
(
Client
&
client
,
const
PlaylistVector
&
list
)
print_spl_list
(
Client
&
client
,
const
PlaylistVector
&
list
)
{
{
...
...
src/command/StickerCommands.cxx
View file @
f90abe95
...
@@ -31,8 +31,6 @@
...
@@ -31,8 +31,6 @@
#include "protocol/Result.hxx"
#include "protocol/Result.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include <glib.h>
#include <string.h>
#include <string.h>
struct
sticker_song_find_data
{
struct
sticker_song_find_data
{
...
...
src/db/ProxyDatabasePlugin.cxx
View file @
f90abe95
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "DatabasePlugin.hxx"
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseError.hxx"
#include "DatabaseError.hxx"
#include "PlaylistVector.hxx"
#include "Directory.hxx"
#include "Directory.hxx"
#include "Song.hxx"
#include "Song.hxx"
#include "SongFilter.hxx"
#include "SongFilter.hxx"
...
...
src/db/SimpleDatabasePlugin.cxx
View file @
f90abe95
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <sys/types.h>
#include <errno.h>
#include <errno.h>
static
constexpr
Domain
simple_db_domain
(
"simple_db"
);
static
constexpr
Domain
simple_db_domain
(
"simple_db"
);
...
...
src/decoder/DsdLib.cxx
View file @
f90abe95
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
#include "DsdLib.hxx"
#include "DsdLib.hxx"
#include "DecoderAPI.hxx"
#include "DecoderAPI.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "util/bit_reverse.h"
#include "tag/TagHandler.hxx"
#include "tag/TagId3.hxx"
#include "tag/TagId3.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
...
src/decoder/DsdiffDecoderPlugin.cxx
View file @
f90abe95
...
@@ -38,9 +38,6 @@
...
@@ -38,9 +38,6 @@
#include "DsdLib.hxx"
#include "DsdLib.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <unistd.h>
#include <stdio.h>
/* for SEEK_SET, SEEK_CUR */
struct
DsdiffHeader
{
struct
DsdiffHeader
{
DsdId
id
;
DsdId
id
;
DffDsdUint64
size
;
DffDsdUint64
size
;
...
...
src/decoder/DsfDecoderPlugin.cxx
View file @
f90abe95
...
@@ -39,9 +39,6 @@
...
@@ -39,9 +39,6 @@
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <unistd.h>
#include <stdio.h>
/* for SEEK_SET, SEEK_CUR */
struct
DsfMetaData
{
struct
DsfMetaData
{
unsigned
sample_rate
,
channels
;
unsigned
sample_rate
,
channels
;
bool
bitreverse
;
bool
bitreverse
;
...
...
src/decoder/FfmpegDecoderPlugin.cxx
View file @
f90abe95
...
@@ -38,7 +38,6 @@ extern "C" {
...
@@ -38,7 +38,6 @@ extern "C" {
#include <libavutil/avutil.h>
#include <libavutil/avutil.h>
#include <libavutil/log.h>
#include <libavutil/log.h>
#include <libavutil/mathematics.h>
#include <libavutil/mathematics.h>
#include <libavutil/dict.h>
}
}
#include <assert.h>
#include <assert.h>
...
...
src/decoder/FfmpegMetaData.hxx
View file @
f90abe95
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#define MPD_FFMPEG_METADATA_HXX
#define MPD_FFMPEG_METADATA_HXX
extern
"C"
{
extern
"C"
{
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libavutil/dict.h>
#include <libavutil/dict.h>
}
}
...
@@ -35,6 +33,6 @@ struct tag_handler;
...
@@ -35,6 +33,6 @@ struct tag_handler;
void
void
ffmpeg_scan_dictionary
(
AVDictionary
*
dict
,
ffmpeg_scan_dictionary
(
AVDictionary
*
dict
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
#endif
#endif
src/decoder/FlacCommon.cxx
View file @
f90abe95
...
@@ -25,14 +25,10 @@
...
@@ -25,14 +25,10 @@
#include "FlacCommon.hxx"
#include "FlacCommon.hxx"
#include "FlacMetadata.hxx"
#include "FlacMetadata.hxx"
#include "FlacPcm.hxx"
#include "FlacPcm.hxx"
#include "MixRampInfo.hxx"
#include "CheckAudioFormat.hxx"
#include "CheckAudioFormat.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
flac_data
::
flac_data
(
Decoder
&
_decoder
,
flac_data
::
flac_data
(
Decoder
&
_decoder
,
InputStream
&
_input_stream
)
InputStream
&
_input_stream
)
:
FlacInput
(
_input_stream
,
&
_decoder
),
:
FlacInput
(
_input_stream
,
&
_decoder
),
...
...
src/decoder/FlacCommon.hxx
View file @
f90abe95
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include "pcm/PcmBuffer.hxx"
#include "pcm/PcmBuffer.hxx"
#include <FLAC/stream_decoder.h>
#include <FLAC/stream_decoder.h>
#include <FLAC/metadata.h>
struct
flac_data
:
public
FlacInput
{
struct
flac_data
:
public
FlacInput
{
PcmBuffer
buffer
;
PcmBuffer
buffer
;
...
...
src/decoder/FlacDecoderPlugin.cxx
View file @
f90abe95
...
@@ -26,10 +26,6 @@
...
@@ -26,10 +26,6 @@
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <glib.h>
#include <assert.h>
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
#error libFLAC is too old
#error libFLAC is too old
#endif
#endif
...
...
src/decoder/FlacMetadata.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "FlacMetadata.hxx"
#include "FlacMetadata.hxx"
#include "XiphTags.hxx"
#include "XiphTags.hxx"
#include "MixRampInfo.hxx"
#include "MixRampInfo.hxx"
#include "tag/Tag.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
...
@@ -30,7 +29,6 @@
...
@@ -30,7 +29,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
static
bool
static
bool
...
...
src/decoder/FlacMetadata.hxx
View file @
f90abe95
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <assert.h>
#include <assert.h>
struct
tag_handler
;
class
MixRampInfo
;
class
MixRampInfo
;
class
FlacMetadataChain
{
class
FlacMetadataChain
{
...
@@ -81,7 +82,7 @@ public:
...
@@ -81,7 +82,7 @@ public:
return
FLAC__Metadata_ChainStatusString
[
GetStatus
()];
return
FLAC__Metadata_ChainStatusString
[
GetStatus
()];
}
}
void
Scan
(
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
void
Scan
(
const
tag_handler
*
handler
,
void
*
handler_ctx
);
};
};
class
FLACMetadataIterator
{
class
FLACMetadataIterator
{
...
@@ -110,7 +111,6 @@ public:
...
@@ -110,7 +111,6 @@ public:
}
}
};
};
struct
tag_handler
;
struct
Tag
;
struct
Tag
;
struct
ReplayGainInfo
;
struct
ReplayGainInfo
;
...
@@ -136,6 +136,6 @@ flac_vorbis_comments_to_tag(Tag &tag,
...
@@ -136,6 +136,6 @@ flac_vorbis_comments_to_tag(Tag &tag,
void
void
flac_scan_metadata
(
const
FLAC__StreamMetadata
*
block
,
flac_scan_metadata
(
const
FLAC__StreamMetadata
*
block
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
#endif
#endif
src/decoder/MadDecoderPlugin.cxx
View file @
f90abe95
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <assert.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
...
...
src/decoder/MikmodDecoderPlugin.cxx
View file @
f90abe95
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <glib.h>
#include <mikmod.h>
#include <mikmod.h>
#include <assert.h>
#include <assert.h>
static
constexpr
Domain
mikmod_domain
(
"mikmod"
);
static
constexpr
Domain
mikmod_domain
(
"mikmod"
);
...
...
src/decoder/MpcdecDecoderPlugin.cxx
View file @
f90abe95
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
#include <mpc/mpcdec.h>
#include <mpc/mpcdec.h>
#include <assert.h>
#include <unistd.h>
#include <math.h>
#include <math.h>
struct
mpc_decoder_data
{
struct
mpc_decoder_data
{
...
...
src/decoder/Mpg123DecoderPlugin.cxx
View file @
f90abe95
...
@@ -26,9 +26,8 @@
...
@@ -26,9 +26,8 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <glib.h>
#include <mpg123.h>
#include <mpg123.h>
#include <stdio.h>
#include <stdio.h>
static
constexpr
Domain
mpg123_domain
(
"mpg123"
);
static
constexpr
Domain
mpg123_domain
(
"mpg123"
);
...
...
src/decoder/OggCodec.cxx
View file @
f90abe95
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "config.h"
#include "config.h"
#include "OggCodec.hxx"
#include "OggCodec.hxx"
#include "DecoderAPI.hxx"
#include <string.h>
#include <string.h>
...
...
src/decoder/OggCodec.hxx
View file @
f90abe95
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
#ifndef MPD_OGG_CODEC_HXX
#ifndef MPD_OGG_CODEC_HXX
#define MPD_OGG_CODEC_HXX
#define MPD_OGG_CODEC_HXX
#include "DecoderAPI.hxx"
struct
Decoder
;
struct
InputStream
;
enum
ogg_codec
{
enum
ogg_codec
{
OGG_CODEC_UNKNOWN
,
OGG_CODEC_UNKNOWN
,
...
...
src/decoder/OggFind.hxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <ogg/ogg.h>
#include <ogg/ogg.h>
struct
InputStream
;
class
OggSyncState
;
class
OggSyncState
;
/**
/**
...
...
src/decoder/OpusDecoderPlugin.cxx
View file @
f90abe95
...
@@ -22,12 +22,10 @@
...
@@ -22,12 +22,10 @@
#include "OpusDomain.hxx"
#include "OpusDomain.hxx"
#include "OpusHead.hxx"
#include "OpusHead.hxx"
#include "OpusTags.hxx"
#include "OpusTags.hxx"
#include "OggUtil.hxx"
#include "OggFind.hxx"
#include "OggFind.hxx"
#include "OggSyncState.hxx"
#include "OggSyncState.hxx"
#include "DecoderAPI.hxx"
#include "DecoderAPI.hxx"
#include "OggCodec.hxx"
#include "OggCodec.hxx"
#include "CheckAudioFormat.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
...
...
src/decoder/OpusHead.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "OpusHead.hxx"
#include "OpusHead.hxx"
#include <stdint.h>
#include <stdint.h>
#include <string.h>
struct
OpusHead
{
struct
OpusHead
{
char
signature
[
8
];
char
signature
[
8
];
...
...
src/decoder/PcmDecoderPlugin.cxx
View file @
f90abe95
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#include "util/ByteReverse.hxx"
#include "util/ByteReverse.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <glib.h>
#include <unistd.h>
#include <string.h>
#include <string.h>
#include <stdio.h>
/* for SEEK_SET */
#include <stdio.h>
/* for SEEK_SET */
...
...
src/decoder/VorbisComments.cxx
View file @
f90abe95
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "config.h"
#include "VorbisComments.hxx"
#include "VorbisComments.hxx"
#include "XiphTags.hxx"
#include "XiphTags.hxx"
#include "tag/Tag.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagBuilder.hxx"
...
@@ -29,7 +28,6 @@
...
@@ -29,7 +28,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/decoder/VorbisComments.hxx
View file @
f90abe95
...
@@ -31,7 +31,7 @@ vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments);
...
@@ -31,7 +31,7 @@ vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments);
void
void
vorbis_comments_scan
(
char
**
comments
,
vorbis_comments_scan
(
char
**
comments
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
Tag
*
Tag
*
vorbis_comments_to_tag
(
char
**
comments
);
vorbis_comments_to_tag
(
char
**
comments
);
...
...
src/decoder/VorbisDecoderPlugin.cxx
View file @
f90abe95
...
@@ -25,9 +25,7 @@
...
@@ -25,9 +25,7 @@
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "OggCodec.hxx"
#include "OggCodec.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/UriUtil.hxx"
#include "util/Macros.hxx"
#include "util/Macros.hxx"
#include "system/ByteOrder.hxx"
#include "CheckAudioFormat.hxx"
#include "CheckAudioFormat.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
@@ -48,7 +46,6 @@
...
@@ -48,7 +46,6 @@
#define ov_time_seek_page(VF, S) (ov_time_seek_page(VF, (S)*1000))
#define ov_time_seek_page(VF, S) (ov_time_seek_page(VF, (S)*1000))
#endif
/* HAVE_TREMOR */
#endif
/* HAVE_TREMOR */
#include <assert.h>
#include <errno.h>
#include <errno.h>
struct
vorbis_input_stream
{
struct
vorbis_input_stream
{
...
...
src/decoder/VorbisDomain.hxx
View file @
f90abe95
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "check.h"
#include "check.h"
extern
const
class
Domain
vorbis_domain
;
class
Domain
;
extern
const
Domain
vorbis_domain
;
#endif
#endif
src/encoder/FlacEncoderPlugin.cxx
View file @
f90abe95
...
@@ -31,7 +31,6 @@ extern "C" {
...
@@ -31,7 +31,6 @@ extern "C" {
#include "util/growing_fifo.h"
#include "util/growing_fifo.h"
}
}
#include <assert.h>
#include <string.h>
#include <string.h>
#include <FLAC/stream_encoder.h>
#include <FLAC/stream_encoder.h>
...
...
src/encoder/VorbisEncoderPlugin.cxx
View file @
f90abe95
...
@@ -33,8 +33,6 @@
...
@@ -33,8 +33,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
struct
vorbis_encoder
{
struct
vorbis_encoder
{
/** the base class */
/** the base class */
Encoder
encoder
;
Encoder
encoder
;
...
...
src/event/BufferedSocket.cxx
View file @
f90abe95
...
@@ -22,6 +22,9 @@
...
@@ -22,6 +22,9 @@
#include "system/SocketError.hxx"
#include "system/SocketError.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Compiler.h"
#include <algorithm>
BufferedSocket
::
ssize_t
BufferedSocket
::
ssize_t
BufferedSocket
::
DirectRead
(
void
*
data
,
size_t
length
)
BufferedSocket
::
DirectRead
(
void
*
data
,
size_t
length
)
...
...
src/event/BufferedSocket.hxx
View file @
f90abe95
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
#include "check.h"
#include "check.h"
#include "SocketMonitor.hxx"
#include "SocketMonitor.hxx"
#include "util/FifoBuffer.hxx"
#include "util/FifoBuffer.hxx"
#include "Compiler.h"
#include <assert.h>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
struct
fifo_buffer
;
struct
fifo_buffer
;
class
Error
;
class
Error
;
class
EventLoop
;
/**
/**
* A #SocketMonitor specialization that adds an input buffer.
* A #SocketMonitor specialization that adds an input buffer.
...
...
src/event/FullyBufferedSocket.cxx
View file @
f90abe95
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "util/fifo_buffer.h"
#include "util/fifo_buffer.h"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Compiler.h"
#include <assert.h>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
...
...
src/event/FullyBufferedSocket.hxx
View file @
f90abe95
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "BufferedSocket.hxx"
#include "BufferedSocket.hxx"
#include "IdleMonitor.hxx"
#include "IdleMonitor.hxx"
#include "util/PeakBuffer.hxx"
#include "util/PeakBuffer.hxx"
#include "Compiler.h"
/**
/**
* A #BufferedSocket specialization that adds an output buffer.
* A #BufferedSocket specialization that adds an output buffer.
...
...
src/event/IdleMonitor.cxx
View file @
f90abe95
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#include "IdleMonitor.hxx"
#include "IdleMonitor.hxx"
#include "Loop.hxx"
#include "Loop.hxx"
#include <assert.h>
void
void
IdleMonitor
::
Cancel
()
IdleMonitor
::
Cancel
()
{
{
...
...
src/event/MultiSocketMonitor.hxx
View file @
f90abe95
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#endif
#endif
#include <forward_list>
#include <forward_list>
#include <iterator>
#include <assert.h>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
...
...
src/event/ServerSocket.cxx
View file @
f90abe95
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <glib.h>
#include <glib.h>
#include <string>
#include <string>
#include <algorithm>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
...
...
src/event/SignalMonitor.cxx
View file @
f90abe95
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
#include <algorithm>
#include <algorithm>
#include <assert.h>
class
SignalMonitor
final
:
private
SocketMonitor
{
class
SignalMonitor
final
:
private
SocketMonitor
{
#ifdef USE_SIGNALFD
#ifdef USE_SIGNALFD
SignalFD
fd
;
SignalFD
fd
;
...
...
src/event/SocketMonitor.cxx
View file @
f90abe95
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#ifdef WIN32
#ifdef WIN32
#include <winsock2.h>
#include <winsock2.h>
#else
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#endif
#endif
...
...
src/filter/ConvertFilterPlugin.cxx
View file @
f90abe95
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "poison.h"
#include "poison.h"
#include <assert.h>
#include <assert.h>
#include <string.h>
class
ConvertFilter
final
:
public
Filter
{
class
ConvertFilter
final
:
public
Filter
{
/**
/**
...
...
src/filter/NormalizeFilterPlugin.cxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "AudioCompress/compress.h"
#include "AudioCompress/compress.h"
#include <assert.h>
#include <string.h>
#include <string.h>
class
NormalizeFilter
final
:
public
Filter
{
class
NormalizeFilter
final
:
public
Filter
{
...
...
src/filter/RouteFilterPlugin.cxx
View file @
f90abe95
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
#include "ConfigError.hxx"
#include "ConfigError.hxx"
#include "ConfigData.hxx"
#include "ConfigData.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "CheckAudioFormat.hxx"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterInternal.hxx"
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "FilterRegistry.hxx"
...
...
src/fs/AllocatedPath.cxx
View file @
f90abe95
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
inline
AllocatedPath
::
AllocatedPath
(
Donate
,
pointer
_value
)
inline
AllocatedPath
::
AllocatedPath
(
Donate
,
pointer
_value
)
...
...
src/fs/AllocatedPath.hxx
View file @
f90abe95
...
@@ -28,8 +28,6 @@
...
@@ -28,8 +28,6 @@
#include <utility>
#include <utility>
#include <string>
#include <string>
#include <assert.h>
class
Error
;
class
Error
;
/**
/**
...
...
src/fs/Charset.cxx
View file @
f90abe95
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "Domain.hxx"
#include "Domain.hxx"
#include "Limits.hxx"
#include "Limits.hxx"
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <glib.h>
#include <glib.h>
...
...
src/fs/Config.cxx
View file @
f90abe95
...
@@ -20,16 +20,10 @@
...
@@ -20,16 +20,10 @@
#include "config.h"
#include "config.h"
#include "Config.hxx"
#include "Config.hxx"
#include "Charset.hxx"
#include "Charset.hxx"
#include "Domain.hxx"
#include "ConfigGlobal.hxx"
#include "ConfigGlobal.hxx"
#include "Log.hxx"
#include "Compiler.h"
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#ifdef WIN32
#ifdef WIN32
#include <windows.h> // for GetACP()
#include <windows.h> // for GetACP()
#include <stdio.h> // for sprintf()
#include <stdio.h> // for sprintf()
...
...
src/fs/FileSystem.hxx
View file @
f90abe95
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
class
AllocatedPath
;
class
AllocatedPath
;
...
...
src/fs/Path.hxx
View file @
f90abe95
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
class
Error
;
/**
/**
* A path name in the native file system character set.
* A path name in the native file system character set.
*
*
...
...
src/fs/Traits.hxx
View file @
f90abe95
...
@@ -31,8 +31,6 @@
...
@@ -31,8 +31,6 @@
#include <assert.h>
#include <assert.h>
class
Error
;
/**
/**
* This class describes the nature of a filesystem path.
* This class describes the nature of a filesystem path.
*/
*/
...
...
src/input/ArchiveInputPlugin.cxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include "ArchivePlugin.hxx"
#include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
#include "ArchiveFile.hxx"
#include "InputPlugin.hxx"
#include "InputPlugin.hxx"
#include "util/Error.hxx"
#include "fs/Traits.hxx"
#include "fs/Traits.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
...
src/input/FfmpegInputPlugin.cxx
View file @
f90abe95
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
extern
"C"
{
extern
"C"
{
#include <libavutil/avutil.h>
#include <libavformat/avio.h>
#include <libavformat/avio.h>
#include <libavformat/avformat.h>
#include <libavformat/avformat.h>
}
}
...
...
src/input/FileInputPlugin.cxx
View file @
f90abe95
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#include <errno.h>
#include <string.h>
#include <glib.h>
static
constexpr
Domain
file_domain
(
"file"
);
static
constexpr
Domain
file_domain
(
"file"
);
...
...
src/input/MmsInputPlugin.cxx
View file @
f90abe95
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
#include <glib.h>
#include <glib.h>
#include <libmms/mmsx.h>
#include <libmms/mmsx.h>
#include <string.h>
#include <errno.h>
struct
MmsInputStream
{
struct
MmsInputStream
{
InputStream
base
;
InputStream
base
;
...
...
src/input/RewindInputPlugin.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "RewindInputPlugin.hxx"
#include "RewindInputPlugin.hxx"
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "InputPlugin.hxx"
#include "InputPlugin.hxx"
#include "tag/Tag.hxx"
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
...
...
src/ls.cxx
View file @
f90abe95
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
/**
/**
* file:// is not included in remoteUrlPrefixes, the connection method
* file:// is not included in remoteUrlPrefixes, the connection method
...
...
src/mixer/OssMixerPlugin.cxx
View file @
f90abe95
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "config.h"
#include "config.h"
#include "MixerInternal.hxx"
#include "MixerInternal.hxx"
#include "
OutputAPI
.hxx"
#include "
ConfigData
.hxx"
#include "system/fd_util.h"
#include "system/fd_util.h"
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
@@ -28,10 +28,8 @@
...
@@ -28,10 +28,8 @@
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
...
...
src/mixer/PulseMixerPlugin.cxx
View file @
f90abe95
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <pulse/thread-mainloop.h>
#include <pulse/context.h>
#include <pulse/context.h>
#include <pulse/introspect.h>
#include <pulse/introspect.h>
#include <pulse/stream.h>
#include <pulse/stream.h>
...
@@ -34,7 +33,6 @@
...
@@ -34,7 +33,6 @@
#include <pulse/error.h>
#include <pulse/error.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
struct
PulseMixer
final
:
public
Mixer
{
struct
PulseMixer
final
:
public
Mixer
{
PulseOutput
*
output
;
PulseOutput
*
output
;
...
...
src/mixer/PulseMixerPlugin.hxx
View file @
f90abe95
...
@@ -20,20 +20,17 @@
...
@@ -20,20 +20,17 @@
#ifndef MPD_PULSE_MIXER_PLUGIN_HXX
#ifndef MPD_PULSE_MIXER_PLUGIN_HXX
#define MPD_PULSE_MIXER_PLUGIN_HXX
#define MPD_PULSE_MIXER_PLUGIN_HXX
#include <pulse/def.h>
struct
PulseMixer
;
struct
PulseMixer
;
struct
pa_context
;
struct
pa_context
;
struct
pa_stream
;
struct
pa_stream
;
void
void
pulse_mixer_on_connect
(
PulseMixer
*
pm
,
struct
pa_context
*
context
);
pulse_mixer_on_connect
(
PulseMixer
*
pm
,
pa_context
*
context
);
void
void
pulse_mixer_on_disconnect
(
PulseMixer
*
pm
);
pulse_mixer_on_disconnect
(
PulseMixer
*
pm
);
void
void
pulse_mixer_on_change
(
PulseMixer
*
pm
,
pulse_mixer_on_change
(
PulseMixer
*
pm
,
pa_context
*
context
,
pa_stream
*
stream
);
struct
pa_context
*
context
,
struct
pa_stream
*
stream
);
#endif
#endif
src/mixer/RoarMixerPlugin.cxx
View file @
f90abe95
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
#include "config.h"
#include "config.h"
#include "MixerInternal.hxx"
#include "MixerInternal.hxx"
#include "OutputAPI.hxx"
#include "output/RoarOutputPlugin.hxx"
#include "output/RoarOutputPlugin.hxx"
#include "Compiler.h"
struct
RoarMixer
final
:
public
Mixer
{
struct
RoarMixer
final
:
public
Mixer
{
/** the base mixer class */
/** the base mixer class */
...
...
src/output/FifoOutputPlugin.cxx
View file @
f90abe95
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "ConfigError.hxx"
#include "ConfigError.hxx"
#include "OutputAPI.hxx"
#include "OutputAPI.hxx"
#include "Timer.hxx"
#include "Timer.hxx"
#include "system/fd_util.h"
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
...
@@ -30,10 +29,8 @@
...
@@ -30,10 +29,8 @@
#include "Log.hxx"
#include "Log.hxx"
#include "open.h"
#include "open.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#define FIFO_BUFFER_SIZE 65536
/* pipe capacity on Linux >= 2.6.11 */
#define FIFO_BUFFER_SIZE 65536
/* pipe capacity on Linux >= 2.6.11 */
...
...
src/output/JackOutputPlugin.cxx
View file @
f90abe95
...
@@ -34,10 +34,6 @@
...
@@ -34,10 +34,6 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
enum
{
enum
{
MAX_PORTS
=
16
,
MAX_PORTS
=
16
,
...
...
src/output/NullOutputPlugin.cxx
View file @
f90abe95
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#include "OutputAPI.hxx"
#include "OutputAPI.hxx"
#include "Timer.hxx"
#include "Timer.hxx"
#include <assert.h>
struct
NullOutput
{
struct
NullOutput
{
struct
audio_output
base
;
struct
audio_output
base
;
...
...
src/output/PulseOutputPlugin.hxx
View file @
f90abe95
...
@@ -41,6 +41,6 @@ pulse_output_clear_mixer(PulseOutput *po, PulseMixer *pm);
...
@@ -41,6 +41,6 @@ pulse_output_clear_mixer(PulseOutput *po, PulseMixer *pm);
bool
bool
pulse_output_set_volume
(
PulseOutput
*
po
,
pulse_output_set_volume
(
PulseOutput
*
po
,
const
struct
pa_cvolume
*
volume
,
Error
&
error
);
const
pa_cvolume
*
volume
,
Error
&
error
);
#endif
#endif
src/pcm/PcmBuffer.cxx
View file @
f90abe95
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#include "config.h"
#include "config.h"
#include "PcmBuffer.hxx"
#include "PcmBuffer.hxx"
#include "poison.h"
void
*
void
*
PcmBuffer
::
Get
(
size_t
new_size
)
PcmBuffer
::
Get
(
size_t
new_size
)
...
...
src/pcm/PcmConvert.hxx
View file @
f90abe95
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <stddef.h>
class
Error
;
class
Error
;
class
Domain
;
/**
/**
* This object is statically allocated (within another struct), and
* This object is statically allocated (within another struct), and
...
@@ -100,6 +101,6 @@ private:
...
@@ -100,6 +101,6 @@ private:
Error
&
error
);
Error
&
error
);
};
};
extern
const
class
Domain
pcm_convert_domain
;
extern
const
Domain
pcm_convert_domain
;
#endif
#endif
src/pcm/PcmDsd.cxx
View file @
f90abe95
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <algorithm>
#include <algorithm>
#include <assert.h>
#include <assert.h>
#include <string.h>
PcmDsd
::
PcmDsd
()
PcmDsd
::
PcmDsd
()
{
{
...
...
src/pcm/PcmDsdUsb.cxx
View file @
f90abe95
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "PcmBuffer.hxx"
#include "PcmBuffer.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include <assert.h>
constexpr
constexpr
static
inline
uint32_t
static
inline
uint32_t
pcm_two_dsd_to_usb_marker1
(
uint8_t
a
,
uint8_t
b
)
pcm_two_dsd_to_usb_marker1
(
uint8_t
a
,
uint8_t
b
)
...
...
src/pcm/PcmMix.cxx
View file @
f90abe95
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "PcmUtils.hxx"
#include "PcmUtils.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include <assert.h>
#include <math.h>
#include <math.h>
template
<
typename
T
,
typename
U
,
unsigned
bits
>
template
<
typename
T
,
typename
U
,
unsigned
bits
>
...
...
src/playlist/AsxPlaylistPlugin.cxx
View file @
f90abe95
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
static
constexpr
Domain
asx_domain
(
"asx"
);
static
constexpr
Domain
asx_domain
(
"asx"
);
...
...
src/playlist/CuePlaylistPlugin.cxx
View file @
f90abe95
...
@@ -21,13 +21,10 @@
...
@@ -21,13 +21,10 @@
#include "CuePlaylistPlugin.hxx"
#include "CuePlaylistPlugin.hxx"
#include "PlaylistPlugin.hxx"
#include "PlaylistPlugin.hxx"
#include "SongEnumerator.hxx"
#include "SongEnumerator.hxx"
#include "tag/Tag.hxx"
#include "Song.hxx"
#include "cue/CueParser.hxx"
#include "cue/CueParser.hxx"
#include "TextInputStream.hxx"
#include "TextInputStream.hxx"
#include <assert.h>
#include <string>
#include <string.h>
class
CuePlaylist
final
:
public
SongEnumerator
{
class
CuePlaylist
final
:
public
SongEnumerator
{
InputStream
&
is
;
InputStream
&
is
;
...
...
src/playlist/EmbeddedCuePlaylistPlugin.cxx
View file @
f90abe95
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "EmbeddedCuePlaylistPlugin.hxx"
#include "EmbeddedCuePlaylistPlugin.hxx"
#include "PlaylistPlugin.hxx"
#include "PlaylistPlugin.hxx"
#include "SongEnumerator.hxx"
#include "SongEnumerator.hxx"
#include "tag/Tag.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagId3.hxx"
#include "tag/TagId3.hxx"
#include "tag/ApeTag.hxx"
#include "tag/ApeTag.hxx"
...
@@ -38,7 +37,6 @@
...
@@ -38,7 +37,6 @@
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include <assert.h>
#include <string.h>
#include <string.h>
class
EmbeddedCuePlaylist
final
:
public
SongEnumerator
{
class
EmbeddedCuePlaylist
final
:
public
SongEnumerator
{
...
...
src/playlist/RssPlaylistPlugin.cxx
View file @
f90abe95
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
static
constexpr
Domain
rss_domain
(
"rss"
);
static
constexpr
Domain
rss_domain
(
"rss"
);
...
...
src/playlist/XspfPlaylistPlugin.cxx
View file @
f90abe95
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <string.h>
static
constexpr
Domain
xspf_domain
(
"xspf"
);
static
constexpr
Domain
xspf_domain
(
"xspf"
);
...
...
src/system/EPollFD.hxx
View file @
f90abe95
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <assert.h>
#include <assert.h>
#include <sys/epoll.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <unistd.h>
#include <stdint.h>
#include "check.h"
#include "check.h"
...
...
src/system/Resolver.cxx
View file @
f90abe95
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
#ifndef WIN32
#ifndef WIN32
#include <sys/socket.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netdb.h>
#ifdef HAVE_TCP
#include <netinet/in.h>
#endif
#else
#else
#include <ws2tcpip.h>
#include <ws2tcpip.h>
#include <winsock.h>
#include <winsock.h>
...
...
src/system/Resolver.hxx
View file @
f90abe95
...
@@ -27,8 +27,9 @@
...
@@ -27,8 +27,9 @@
struct
sockaddr
;
struct
sockaddr
;
struct
addrinfo
;
struct
addrinfo
;
class
Error
;
class
Error
;
class
Domain
;
extern
const
class
Domain
resolver_domain
;
extern
const
Domain
resolver_domain
;
/**
/**
* Converts the specified socket address into a string in the form
* Converts the specified socket address into a string in the form
...
@@ -42,7 +43,7 @@ extern const class Domain resolver_domain;
...
@@ -42,7 +43,7 @@ extern const class Domain resolver_domain;
*/
*/
gcc_malloc
gcc_malloc
char
*
char
*
sockaddr_to_string
(
const
s
truct
s
ockaddr
*
sa
,
size_t
length
,
Error
&
error
);
sockaddr_to_string
(
const
sockaddr
*
sa
,
size_t
length
,
Error
&
error
);
/**
/**
* Resolve a specification in the form "host", "host:port",
* Resolve a specification in the form "host", "host:port",
...
@@ -54,7 +55,7 @@ sockaddr_to_string(const struct sockaddr *sa, size_t length, Error &error);
...
@@ -54,7 +55,7 @@ sockaddr_to_string(const struct sockaddr *sa, size_t length, Error &error);
* @return an #addrinfo linked list that must be freed with
* @return an #addrinfo linked list that must be freed with
* freeaddrinfo(), or NULL on error
* freeaddrinfo(), or NULL on error
*/
*/
struct
addrinfo
*
addrinfo
*
resolve_host_port
(
const
char
*
host_port
,
unsigned
default_port
,
resolve_host_port
(
const
char
*
host_port
,
unsigned
default_port
,
int
flags
,
int
socktype
,
int
flags
,
int
socktype
,
Error
&
error
);
Error
&
error
);
...
...
src/system/SignalFD.cxx
View file @
f90abe95
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "config.h"
#ifdef USE_SIGNALFD
#ifdef USE_SIGNALFD
#include "SignalFD.hxx"
#include "SignalFD.hxx"
#include "fd_util.h"
#include "FatalError.hxx"
#include "FatalError.hxx"
#include <assert.h>
#include <assert.h>
...
...
src/system/SocketError.hxx
View file @
f90abe95
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#define MPD_SOCKET_ERROR_HXX
#define MPD_SOCKET_ERROR_HXX
#include "Compiler.h"
#include "Compiler.h"
#include "util/Error.hxx"
#include "util/Error.hxx"
// IWYU pragma: export
#ifdef WIN32
#ifdef WIN32
#include <winsock2.h>
#include <winsock2.h>
...
@@ -31,11 +31,13 @@ typedef DWORD socket_error_t;
...
@@ -31,11 +31,13 @@ typedef DWORD socket_error_t;
typedef
int
socket_error_t
;
typedef
int
socket_error_t
;
#endif
#endif
class
Domain
;
/**
/**
* A #Domain for #Error for socket I/O errors. The code is an errno
* A #Domain for #Error for socket I/O errors. The code is an errno
* value (or WSAGetLastError() on Windows).
* value (or WSAGetLastError() on Windows).
*/
*/
extern
const
class
Domain
socket_domain
;
extern
const
Domain
socket_domain
;
gcc_pure
gcc_pure
static
inline
socket_error_t
static
inline
socket_error_t
...
...
src/tag/Aiff.cxx
View file @
f90abe95
...
@@ -26,9 +26,7 @@
...
@@ -26,9 +26,7 @@
#include <limits>
#include <limits>
#include <stdint.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <string.h>
static
constexpr
Domain
aiff_domain
(
"aiff"
);
static
constexpr
Domain
aiff_domain
(
"aiff"
);
...
...
src/tag/ApeTag.hxx
View file @
f90abe95
...
@@ -34,6 +34,6 @@ extern const struct tag_table ape_tags[];
...
@@ -34,6 +34,6 @@ extern const struct tag_table ape_tags[];
*/
*/
bool
bool
tag_ape_scan2
(
Path
path_fs
,
tag_ape_scan2
(
Path
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
#endif
#endif
src/tag/Riff.cxx
View file @
f90abe95
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include <limits>
#include <limits>
#include <stdint.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <string.h>
#include <string.h>
...
...
src/tag/Tag.hxx
View file @
f90abe95
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
#ifndef MPD_TAG_HXX
#ifndef MPD_TAG_HXX
#define MPD_TAG_HXX
#define MPD_TAG_HXX
#include "TagType.h"
#include "TagType.h"
// IWYU pragma: export
#include "TagItem.hxx"
#include "TagItem.hxx"
// IWYU pragma: export
#include "Compiler.h"
#include "Compiler.h"
#include <algorithm>
#include <algorithm>
...
...
src/tag/TagConfig.cxx
View file @
f90abe95
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
#include <algorithm>
#include <algorithm>
#include <string.h>
void
void
TagLoadConfig
()
TagLoadConfig
()
{
{
...
...
src/tag/TagConfig.hxx
View file @
f90abe95
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
#ifndef MPD_TAG_CONFIG_HXX
#ifndef MPD_TAG_CONFIG_HXX
#define MPD_TAG_CONFIG_HXX
#define MPD_TAG_CONFIG_HXX
#include "TagType.h"
void
void
TagLoadConfig
();
TagLoadConfig
();
...
...
src/tag/TagId3.cxx
View file @
f90abe95
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "TagId3.hxx"
#include "TagId3.hxx"
#include "TagHandler.hxx"
#include "TagHandler.hxx"
#include "TagTable.hxx"
#include "TagTable.hxx"
#include "Tag.hxx"
#include "TagBuilder.hxx"
#include "TagBuilder.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
...
...
src/tag/TagId3.hxx
View file @
f90abe95
...
@@ -33,10 +33,10 @@ class Error;
...
@@ -33,10 +33,10 @@ class Error;
bool
bool
tag_id3_scan
(
Path
path_fs
,
tag_id3_scan
(
Path
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
Tag
*
Tag
*
tag_id3_import
(
struct
id3_tag
*
);
tag_id3_import
(
id3_tag
*
);
/**
/**
* Loads the ID3 tags from the file into a libid3tag object. The
* Loads the ID3 tags from the file into a libid3tag object. The
...
@@ -53,8 +53,8 @@ tag_id3_load(Path path_fs, Error &error);
...
@@ -53,8 +53,8 @@ tag_id3_load(Path path_fs, Error &error);
*
*
*/
*/
void
void
scan_id3_tag
(
struct
id3_tag
*
tag
,
scan_id3_tag
(
id3_tag
*
tag
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
const
tag_handler
*
handler
,
void
*
handler_ctx
);
#else
#else
...
@@ -62,7 +62,7 @@ scan_id3_tag(struct id3_tag *tag,
...
@@ -62,7 +62,7 @@ scan_id3_tag(struct id3_tag *tag,
static
inline
bool
static
inline
bool
tag_id3_scan
(
gcc_unused
Path
path_fs
,
tag_id3_scan
(
gcc_unused
Path
path_fs
,
gcc_unused
const
struct
tag_handler
*
handler
,
gcc_unused
const
tag_handler
*
handler
,
gcc_unused
void
*
handler_ctx
)
gcc_unused
void
*
handler_ctx
)
{
{
return
false
;
return
false
;
...
...
src/tag/TagRva2.cxx
View file @
f90abe95
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
#include "TagRva2.hxx"
#include "TagRva2.hxx"
#include "ReplayGainInfo.hxx"
#include "ReplayGainInfo.hxx"
#include <id3tag.h>
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
#include <glib.h>
#include <id3tag.h>
enum
rva2_channel
{
enum
rva2_channel
{
CHANNEL_OTHER
=
0x00
,
CHANNEL_OTHER
=
0x00
,
...
...
src/tag/TagRva2.hxx
View file @
f90abe95
...
@@ -32,6 +32,6 @@ struct ReplayGainInfo;
...
@@ -32,6 +32,6 @@ struct ReplayGainInfo;
* @return true on success
* @return true on success
*/
*/
bool
bool
tag_rva2_parse
(
struct
id3_tag
*
tag
,
ReplayGainInfo
&
replay_gain_info
);
tag_rva2_parse
(
id3_tag
*
tag
,
ReplayGainInfo
&
replay_gain_info
);
#endif
#endif
src/util/Error.hxx
View file @
f90abe95
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "Compiler.h"
#include "Compiler.h"
#include <string>
#include <string>
#include <utility>
#include <assert.h>
#include <assert.h>
...
...
src/util/FormatString.cxx
View file @
f90abe95
...
@@ -19,10 +19,13 @@
...
@@ -19,10 +19,13 @@
#include "FormatString.hxx"
#include "FormatString.hxx"
#include <string.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#ifdef WIN32
#include <string.h>
#endif
char
*
char
*
FormatNewV
(
const
char
*
fmt
,
va_list
args
)
FormatNewV
(
const
char
*
fmt
,
va_list
args
)
{
{
...
...
src/util/Tokenizer.cxx
View file @
f90abe95
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
#include <glib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
static
constexpr
Domain
tokenizer_domain
(
"tokenizer"
);
static
constexpr
Domain
tokenizer_domain
(
"tokenizer"
);
static
inline
bool
static
inline
bool
...
...
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