Commit d663f814 authored by Max Kellermann's avatar Max Kellermann

include cleanups (powered by iwyu)

parent 9cdebc90
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/StringBuffer.hxx" #include "util/StringBuffer.hxx"
#include "util/StringFormat.hxx"
#include <assert.h> #include <assert.h>
#include <stdio.h>
void void
AudioFormat::ApplyMask(AudioFormat mask) noexcept AudioFormat::ApplyMask(AudioFormat mask) noexcept
......
...@@ -24,9 +24,8 @@ ...@@ -24,9 +24,8 @@
#include "pcm/ChannelDefs.hxx" #include "pcm/ChannelDefs.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <chrono> #include <cstdint>
#include <stdint.h>
#include <stddef.h> #include <stddef.h>
template<size_t CAPACITY> class StringBuffer; template<size_t CAPACITY> class StringBuffer;
......
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include <stdexcept>
#include <assert.h>
void void
CheckSampleRate(unsigned long sample_rate) CheckSampleRate(unsigned long sample_rate)
{ {
......
...@@ -36,13 +36,15 @@ ...@@ -36,13 +36,15 @@
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "fs/StandardDirectory.hxx" #include "fs/StandardDirectory.hxx"
#include "system/Error.hxx"
#include "util/Macros.hxx" #include "util/Macros.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/OptionDef.hxx" #include "util/OptionDef.hxx"
#include "util/OptionParser.hxx" #include "util/OptionParser.hxx"
#ifdef _WIN32
#include "system/Error.hxx"
#endif
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
#include "db/Registry.hxx" #include "db/Registry.hxx"
#include "db/DatabasePlugin.hxx" #include "db/DatabasePlugin.hxx"
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <algorithm>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "Instance.hxx" #include "Instance.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include "Stats.hxx" #include "Stats.hxx"
#include "client/List.hxx" #include "client/List.hxx"
#include "input/cache/Manager.hxx" #include "input/cache/Manager.hxx"
...@@ -46,8 +46,6 @@ ...@@ -46,8 +46,6 @@
#endif #endif
#endif #endif
#include <exception>
Instance::Instance() Instance::Instance()
:rtio_thread(true), :rtio_thread(true),
#ifdef ENABLE_SYSTEMD_DAEMON #ifdef ENABLE_SYSTEMD_DAEMON
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "fs/XDG.hxx" #include "fs/XDG.hxx"
#include <sys/stat.h> #include <sys/stat.h>
#include <string.h>
#include <assert.h>
#ifdef ENABLE_SYSTEMD_DAEMON #ifdef ENABLE_SYSTEMD_DAEMON
#include <systemd/sd-daemon.h> #include <systemd/sd-daemon.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_LOCATE_URI_HXX #define MPD_LOCATE_URI_HXX
#include "config.h" #include "config.h"
#include "util/Compiler.h"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "Partition.hxx" #include "Partition.hxx"
#include "tag/Config.hxx" #include "tag/Config.hxx"
#include "ReplayGainGlobal.hxx" #include "ReplayGainGlobal.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "LogInit.hxx" #include "LogInit.hxx"
#include "input/Init.hxx" #include "input/Init.hxx"
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#include "thread/Slack.hxx" #include "thread/Slack.hxx"
#include "net/Init.hxx" #include "net/Init.hxx"
#include "lib/icu/Init.hxx" #include "lib/icu/Init.hxx"
#include "config/File.hxx"
#include "config/Check.hxx" #include "config/Check.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "config/Param.hxx" #include "config/Param.hxx"
...@@ -98,6 +97,7 @@ ...@@ -98,6 +97,7 @@
#include "android/Environment.hxx" #include "android/Environment.hxx"
#include "android/Context.hxx" #include "android/Context.hxx"
#include "android/LogListener.hxx" #include "android/LogListener.hxx"
#include "config/File.hxx"
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "org_musicpd_Bridge.h" #include "org_musicpd_Bridge.h"
#endif #endif
......
...@@ -20,14 +20,12 @@ ...@@ -20,14 +20,12 @@
#ifndef MPD_MAIN_HXX #ifndef MPD_MAIN_HXX
#define MPD_MAIN_HXX #define MPD_MAIN_HXX
class EventLoop;
class Context;
struct Instance; struct Instance;
#ifdef ANDROID #ifdef ANDROID
#include "android/LogListener.hxx" #include "android/LogListener.hxx"
extern Context *context; extern class Context *context;
extern LogListener *logListener; extern LogListener *logListener;
#endif #endif
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#include "MusicPipe.hxx" #include "MusicPipe.hxx"
#include "MusicChunk.hxx" #include "MusicChunk.hxx"
#include <assert.h>
#ifndef NDEBUG #ifndef NDEBUG
bool bool
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#endif #endif
#include <assert.h>
/** /**
* A queue of #MusicChunk objects. One party appends chunks at the * A queue of #MusicChunk objects. One party appends chunks at the
* tail, and the other consumes them from the head. * tail, and the other consumes them from the head.
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "ReplayGainMode.hxx" #include "ReplayGainMode.hxx"
#include "SingleMode.hxx" #include "SingleMode.hxx"
#include "Chrono.hxx" #include "Chrono.hxx"
#include "util/Compiler.h"
#include "config.h" #include "config.h"
#include <string> #include <string>
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include <algorithm>
#include <map> #include <map>
#include <string> #include <string>
#include <utility>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -39,15 +39,11 @@ ...@@ -39,15 +39,11 @@
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "fs/FileInfo.hxx" #include "fs/FileInfo.hxx"
#include "fs/DirectoryReader.hxx" #include "fs/DirectoryReader.hxx"
#include "util/Macros.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include <memory>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <errno.h>
static const char PLAYLIST_COMMENT = '#'; static const char PLAYLIST_COMMENT = '#';
......
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
#include "PlaylistError.hxx" #include "PlaylistError.hxx"
#include "queue/Playlist.hxx" #include "queue/Playlist.hxx"
#include "queue/QueuePrint.hxx" #include "queue/QueuePrint.hxx"
#include "SongPrint.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "db/Interface.hxx"
#include "client/Response.hxx"
#define SONG_FILE "file: " #define SONG_FILE "file: "
#define SONG_TIME "Time: " #define SONG_TIME "Time: "
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include <exception>
static void static void
playlist_print_path(BufferedOutputStream &os, const Path path) playlist_print_path(BufferedOutputStream &os, const Path path)
{ {
......
...@@ -19,9 +19,7 @@ ...@@ -19,9 +19,7 @@
#include "ReplayGainGlobal.hxx" #include "ReplayGainGlobal.hxx"
#include "ReplayGainConfig.hxx" #include "ReplayGainConfig.hxx"
#include "config/Param.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "util/RuntimeError.hxx"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "song/LightSong.hxx" #include "song/LightSong.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "storage/StorageInterface.hxx"
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "TagPrint.hxx" #include "TagPrint.hxx"
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "TagArchive.hxx" #include "TagArchive.hxx"
#endif #endif
#include <exception>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include <exception> #include <exception>
#include <string.h>
static constexpr Domain state_file_domain("state_file"); static constexpr Domain state_file_domain("state_file");
StateFile::StateFile(StateFileConfig &&_config, StateFile::StateFile(StateFileConfig &&_config,
......
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
#include "StateFileConfig.hxx" #include "StateFileConfig.hxx"
#include "event/TimerEvent.hxx" #include "event/TimerEvent.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include "config.h" #include "config.h"
#include <string> #include <string>
#include <chrono>
struct Partition; struct Partition;
class OutputStream; class OutputStream;
......
...@@ -26,10 +26,13 @@ ...@@ -26,10 +26,13 @@
#include "db/Selection.hxx" #include "db/Selection.hxx"
#include "db/Interface.hxx" #include "db/Interface.hxx"
#include "db/Stats.hxx" #include "db/Stats.hxx"
#include "system/Clock.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "time/ChronoUtil.hxx" #include "time/ChronoUtil.hxx"
#ifdef _WIN32
#include "system/Clock.hxx"
#endif
#include <chrono> #include <chrono>
#include <cmath> #include <cmath>
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/LocalOpen.hxx" #include "input/LocalOpen.hxx"
#include <exception>
#include <assert.h> #include <assert.h>
class TagFileScan { class TagFileScan {
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include <exception>
#include <assert.h> #include <assert.h>
/** /**
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include <chrono> #include <chrono>
#include <time.h>
class Response; class Response;
/** /**
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "BackgroundCommand.hxx" #include "BackgroundCommand.hxx"
#include "util/Domain.hxx"
#include "config.h" #include "config.h"
Client::~Client() noexcept Client::~Client() noexcept
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Config.hxx" #include "Config.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "event/Loop.hxx"
#include "util/StringStrip.hxx" #include "util/StringStrip.hxx"
#include <string.h> #include <string.h>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "Client.hxx" #include "Client.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
#include "StickerCommands.hxx" #include "StickerCommands.hxx"
#include "sticker/Database.hxx"
#endif #endif
#include <assert.h> #include <assert.h>
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include <system_error> #include <system_error>
#include <assert.h>
gcc_const gcc_const
static enum ack static enum ack
ToAck(PlaylistResult result) noexcept ToAck(PlaylistResult result) noexcept
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_COMMAND_ERROR_HXX #ifndef MPD_COMMAND_ERROR_HXX
#define MPD_COMMAND_ERROR_HXX #define MPD_COMMAND_ERROR_HXX
#include "CommandResult.hxx"
#include <exception> #include <exception>
class Response; class Response;
......
...@@ -24,20 +24,18 @@ ...@@ -24,20 +24,18 @@
#include "db/DatabasePrint.hxx" #include "db/DatabasePrint.hxx"
#include "db/Count.hxx" #include "db/Count.hxx"
#include "db/Selection.hxx" #include "db/Selection.hxx"
#include "CommandError.hxx"
#include "protocol/RangeArg.hxx" #include "protocol/RangeArg.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "tag/ParseName.hxx" #include "tag/ParseName.hxx"
#include "tag/Mask.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Exception.hxx" #include "util/Exception.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "song/Filter.hxx" #include "song/Filter.hxx"
#include "BulkEdit.hxx"
#include <memory> #include <memory>
#include <vector>
CommandResult CommandResult
handle_listfiles_db(Client &client, Response &r, const char *uri) handle_listfiles_db(Client &client, Response &r, const char *uri)
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "config.h" #include "config.h"
#include "FileCommands.hxx" #include "FileCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "CommandError.hxx"
#include "protocol/Ack.hxx" #include "protocol/Ack.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Request.hxx" #include "Request.hxx"
#include "FileCommands.hxx" #include "FileCommands.hxx"
#include "StorageCommands.hxx" #include "StorageCommands.hxx"
#include "CommandError.hxx"
#include "db/Uri.hxx" #include "db/Uri.hxx"
#include "storage/StorageInterface.hxx" #include "storage/StorageInterface.hxx"
#include "LocateUri.hxx" #include "LocateUri.hxx"
...@@ -47,7 +46,7 @@ ...@@ -47,7 +46,7 @@
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include "Log.hxx" #include "Log.hxx"
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
...@@ -57,7 +56,6 @@ ...@@ -57,7 +56,6 @@
#endif #endif
#include <assert.h> #include <assert.h>
#include <string.h>
static void static void
print_spl_list(Response &r, const PlaylistVector &list) print_spl_list(Response &r, const PlaylistVector &list)
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "PlayerCommands.hxx" #include "PlayerCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "CommandError.hxx"
#include "queue/Playlist.hxx" #include "queue/Playlist.hxx"
#include "PlaylistPrint.hxx" #include "PlaylistPrint.hxx"
#include "SingleMode.hxx" #include "SingleMode.hxx"
...@@ -29,7 +28,7 @@ ...@@ -29,7 +28,7 @@
#include "mixer/Volume.hxx" #include "mixer/Volume.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/StringBuffer.hxx" #include "util/StringBuffer.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "Instance.hxx" #include "Instance.hxx"
#include "db/Selection.hxx" #include "db/Selection.hxx"
#include "db/DatabasePlaylist.hxx" #include "db/DatabasePlaylist.hxx"
#include "CommandError.hxx"
#include "PlaylistSave.hxx" #include "PlaylistSave.hxx"
#include "PlaylistFile.hxx" #include "PlaylistFile.hxx"
#include "PlaylistError.hxx" #include "PlaylistError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "QueueCommands.hxx" #include "QueueCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "CommandError.hxx"
#include "protocol/RangeArg.hxx" #include "protocol/RangeArg.hxx"
#include "db/DatabaseQueue.hxx" #include "db/DatabaseQueue.hxx"
#include "db/Selection.hxx" #include "db/Selection.hxx"
...@@ -40,7 +39,6 @@ ...@@ -40,7 +39,6 @@
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include <memory>
#include <limits> #include <limits>
static void static void
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "sticker/Sticker.hxx" #include "sticker/Sticker.hxx"
#include "sticker/SongSticker.hxx" #include "sticker/SongSticker.hxx"
#include "sticker/Print.hxx" #include "sticker/Print.hxx"
#include "sticker/Database.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx" #include "Partition.hxx"
......
...@@ -22,14 +22,12 @@ ...@@ -22,14 +22,12 @@
#include "config.h" #include "config.h"
#include "StorageCommands.hxx" #include "StorageCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "CommandError.hxx"
#include "time/ChronoUtil.hxx" #include "time/ChronoUtil.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "storage/Registry.hxx" #include "storage/Registry.hxx"
#include "storage/CompositeStorage.hxx" #include "storage/CompositeStorage.hxx"
...@@ -37,7 +35,7 @@ ...@@ -37,7 +35,7 @@
#include "db/plugins/simple/SimpleDatabasePlugin.hxx" #include "db/plugins/simple/SimpleDatabasePlugin.hxx"
#include "db/update/Service.hxx" #include "db/update/Service.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "Idle.hxx" #include "IdleFlags.hxx"
#include <memory> #include <memory>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "tag/ParseName.hxx" #include "tag/ParseName.hxx"
#include "Partition.hxx" #include "queue/Playlist.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
CommandResult CommandResult
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
void void
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_CONFIG_BLOCK_HXX #ifndef MPD_CONFIG_BLOCK_HXX
#define MPD_CONFIG_BLOCK_HXX #define MPD_CONFIG_BLOCK_HXX
#include "Param.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <string> #include <string>
......
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
#ifndef MPD_CONFIG_CHECK_HXX #ifndef MPD_CONFIG_CHECK_HXX
#define MPD_CONFIG_CHECK_HXX #define MPD_CONFIG_CHECK_HXX
#include "Option.hxx"
#include "util/Compiler.h"
struct ConfigData; struct ConfigData;
/** /**
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include <chrono> #include <chrono>
#include <forward_list> #include <forward_list>
struct ConfigParam;
struct ConfigBlock;
class AllocatedPath; class AllocatedPath;
struct ConfigData { struct ConfigData {
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Data.hxx" #include "Data.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "fs/Domain.hxx"
#include "fs/StandardDirectory.hxx" #include "fs/StandardDirectory.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "DatabaseGlue.hxx" #include "DatabaseGlue.hxx"
#include "Interface.hxx" #include "Interface.hxx"
#include "Registry.hxx" #include "Registry.hxx"
#include "DatabaseError.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "DatabasePlugin.hxx" #include "DatabasePlugin.hxx"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "DatabasePlaylist.hxx" #include "DatabasePlaylist.hxx"
#include "DatabaseSong.hxx" #include "DatabaseSong.hxx"
#include "Selection.hxx"
#include "PlaylistFile.hxx" #include "PlaylistFile.hxx"
#include "Interface.hxx" #include "Interface.hxx"
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
......
...@@ -21,15 +21,10 @@ ...@@ -21,15 +21,10 @@
#include "Selection.hxx" #include "Selection.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "TagPrint.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "protocol/RangeArg.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "song/DetachedSong.hxx"
#include "song/Filter.hxx"
#include "song/LightSong.hxx" #include "song/LightSong.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "tag/Mask.hxx"
#include "LightDirectory.hxx" #include "LightDirectory.hxx"
#include "PlaylistInfo.hxx" #include "PlaylistInfo.hxx"
#include "Interface.hxx" #include "Interface.hxx"
......
...@@ -24,10 +24,8 @@ ...@@ -24,10 +24,8 @@
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
enum TagType : uint8_t; enum TagType : uint8_t;
class TagMask;
class SongFilter; class SongFilter;
struct DatabaseSelection; struct DatabaseSelection;
struct RangeArg;
struct Partition; struct Partition;
class Response; class Response;
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_DATABASE_SONG_HXX #ifndef MPD_DATABASE_SONG_HXX
#define MPD_DATABASE_SONG_HXX #define MPD_DATABASE_SONG_HXX
#include "util/Compiler.h"
struct LightSong; struct LightSong;
class Database; class Database;
class Storage; class Storage;
......
...@@ -22,11 +22,8 @@ ...@@ -22,11 +22,8 @@
#include "tag/Type.h" #include "tag/Type.h"
#include <map>
#include <set>
#include <string> #include <string>
class TagMask;
class Database; class Database;
struct DatabaseSelection; struct DatabaseSelection;
template<typename Key> class RecursiveMap; template<typename Key> class RecursiveMap;
......
...@@ -18,9 +18,12 @@ ...@@ -18,9 +18,12 @@
*/ */
#include "VHelper.hxx" #include "VHelper.hxx"
#include "song/DetachedSong.hxx"
#include "song/LightSong.hxx" #include "song/LightSong.hxx"
#include "song/Filter.hxx" #include "song/Filter.hxx"
#include <algorithm>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Visitor.hxx" #include "Visitor.hxx"
#include "Selection.hxx" #include "Selection.hxx"
#include "song/DetachedSong.hxx"
#include <vector> #include <vector>
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "config/Block.hxx" #include "config/Block.hxx"
#include "tag/Builder.hxx" #include "tag/Builder.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "tag/Mask.hxx"
#include "tag/ParseName.hxx" #include "tag/ParseName.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/RecursiveMap.hxx" #include "util/RecursiveMap.hxx"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "DatabaseSave.hxx" #include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx" #include "db/DatabaseLock.hxx"
#include "Directory.hxx"
#include "DirectorySave.hxx" #include "DirectorySave.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "fs/io/TextFile.hxx" #include "fs/io/TextFile.hxx"
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "DatabaseSave.hxx" #include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx" #include "db/DatabaseLock.hxx"
#include "db/DatabaseError.hxx" #include "db/DatabaseError.hxx"
#include "tag/Mask.hxx"
#include "fs/io/TextFile.hxx" #include "fs/io/TextFile.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "fs/io/FileOutputStream.hxx" #include "fs/io/FileOutputStream.hxx"
......
...@@ -23,13 +23,10 @@ ...@@ -23,13 +23,10 @@
#include "lib/upnp/Action.hxx" #include "lib/upnp/Action.hxx"
#include "Directory.hxx" #include "Directory.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/UriUtil.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
#include <stdio.h>
static void static void
ReadResultTag(UPnPDirContent &dirbuf, IXML_Document *response) ReadResultTag(UPnPDirContent &dirbuf, IXML_Document *response)
{ {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "Directory.hxx" #include "Directory.hxx"
#include "lib/upnp/Util.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include "Tags.hxx" #include "Tags.hxx"
#include "tag/Builder.hxx" #include "tag/Builder.hxx"
......
...@@ -34,12 +34,8 @@ ...@@ -34,12 +34,8 @@
#include "song/Filter.hxx" #include "song/Filter.hxx"
#include "song/TagSongFilter.hxx" #include "song/TagSongFilter.hxx"
#include "db/Stats.hxx" #include "db/Stats.hxx"
#include "config/Block.hxx"
#include "tag/Builder.hxx"
#include "tag/Table.hxx" #include "tag/Table.hxx"
#include "tag/Mask.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "Log.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/RecursiveMap.hxx" #include "util/RecursiveMap.hxx"
#include "util/SplitString.hxx" #include "util/SplitString.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_UPDATE_DATABASE_HXX #define MPD_UPDATE_DATABASE_HXX
#include "Remove.hxx" #include "Remove.hxx"
#include "util/Compiler.h"
struct Directory; struct Directory;
struct Song; struct Song;
......
...@@ -27,13 +27,9 @@ ...@@ -27,13 +27,9 @@
#include "fs/NarrowPath.hxx" #include "fs/NarrowPath.hxx"
#include "input/TextInputStream.hxx" #include "input/TextInputStream.hxx"
#include "util/StringStrip.hxx" #include "util/StringStrip.hxx"
#include "Log.hxx"
#include "config.h" #include "config.h"
#include <exception>
#include <assert.h> #include <assert.h>
#include <string.h>
#ifdef HAVE_CLASS_GLOB #ifdef HAVE_CLASS_GLOB
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "Log.hxx" #include "Log.hxx"
#include <sys/inotify.h> #include <sys/inotify.h>
#include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <limits.h> #include <limits.h>
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#define MPD_INOTIFY_SOURCE_HXX #define MPD_INOTIFY_SOURCE_HXX
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "util/Compiler.h"
class FileDescriptor;
typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask, typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask,
const char *name, void *ctx); const char *name, void *ctx);
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_INOTIFY_UPDATE_HXX #ifndef MPD_INOTIFY_UPDATE_HXX
#define MPD_INOTIFY_UPDATE_HXX #define MPD_INOTIFY_UPDATE_HXX
#include "util/Compiler.h"
class EventLoop; class EventLoop;
class Storage; class Storage;
class UpdateService; class UpdateService;
......
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include <forward_list> #include <forward_list>
#include <string> #include <string>
struct Song;
class DatabaseListener; class DatabaseListener;
/** /**
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
#include <errno.h> #include <errno.h>
bool bool
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept> #include <exception>
#include <memory> #include <memory>
#include <assert.h> #include <assert.h>
......
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include <stdint.h> #include <stdint.h>
class DecoderClient;
/** /**
* Throw an instance of this class to stop decoding the current song * Throw an instance of this class to stop decoding the current song
* (successfully). It can be used to jump out of all of a decoder's * (successfully). It can be used to jump out of all of a decoder's
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_DECODER_READER_HXX #define MPD_DECODER_READER_HXX
#include "fs/io/Reader.hxx" #include "fs/io/Reader.hxx"
#include "util/Compiler.h"
class DecoderClient; class DecoderClient;
class InputStream; class InputStream;
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
#include "util/StringCompare.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
#include "tag/ApeReplayGain.hxx" #include "tag/ApeReplayGain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include <id3tag.h> #include <id3tag.h>
#endif #endif
#include <stdexcept>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "tag/Handler.hxx" #include "tag/Handler.hxx"
#include "DsdLib.hxx" #include "DsdLib.hxx"
#include "Log.hxx"
struct DsdiffHeader { struct DsdiffHeader {
DsdId id; DsdId id;
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "util/ByteOrder.hxx" #include "util/ByteOrder.hxx"
#include "DsdLib.hxx" #include "DsdLib.hxx"
#include "tag/Handler.hxx" #include "tag/Handler.hxx"
#include "Log.hxx"
#include <string.h> #include <string.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <neaacdec.h> #include <neaacdec.h>
#include <cmath> #include <cmath>
#include <exception>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "FfmpegDecoderPlugin.hxx" #include "FfmpegDecoderPlugin.hxx"
#include "lib/ffmpeg/Domain.hxx" #include "lib/ffmpeg/Domain.hxx"
#include "lib/ffmpeg/Error.hxx" #include "lib/ffmpeg/Error.hxx"
#include "lib/ffmpeg/LogError.hxx"
#include "lib/ffmpeg/Init.hxx" #include "lib/ffmpeg/Init.hxx"
#include "lib/ffmpeg/Buffer.hxx" #include "lib/ffmpeg/Buffer.hxx"
#include "lib/ffmpeg/Frame.hxx" #include "lib/ffmpeg/Frame.hxx"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "../DecoderAPI.hxx" #include "../DecoderAPI.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include <exception>
AvioStream::~AvioStream() AvioStream::~AvioStream()
{ {
if (io != nullptr) { if (io != nullptr) {
......
...@@ -21,10 +21,8 @@ ...@@ -21,10 +21,8 @@
#include "MadDecoderPlugin.hxx" #include "MadDecoderPlugin.hxx"
#include "../DecoderAPI.hxx" #include "../DecoderAPI.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "config/Block.hxx"
#include "tag/Id3Scan.hxx" #include "tag/Id3Scan.hxx"
#include "tag/Id3ReplayGain.hxx" #include "tag/Id3ReplayGain.hxx"
#include "tag/Rva2.hxx"
#include "tag/Handler.hxx" #include "tag/Handler.hxx"
#include "tag/ReplayGain.hxx" #include "tag/ReplayGain.hxx"
#include "tag/MixRamp.hxx" #include "tag/MixRamp.hxx"
...@@ -40,8 +38,6 @@ ...@@ -40,8 +38,6 @@
#include <id3tag.h> #include <id3tag.h>
#endif #endif
#include <stdexcept>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include <mpc/mpcdec.h> #include <mpc/mpcdec.h>
#include <exception>
#include <math.h> #include <math.h>
struct mpc_decoder_data { struct mpc_decoder_data {
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include "lib/xiph/OggFind.hxx" #include "lib/xiph/OggFind.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include <exception>
/** /**
* Load the end-of-stream packet and restore the previous file * Load the end-of-stream packet and restore the previous file
* position. * position.
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include <string>
#include <stdint.h> #include <stdint.h>
gcc_pure gcc_pure
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <exception> #include <exception>
#include <assert.h>
#include <string.h> #include <string.h>
static constexpr Domain pcm_decoder_domain("pcm_decoder"); static constexpr Domain pcm_decoder_domain("pcm_decoder");
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <wavpack/wavpack.h> #include <wavpack/wavpack.h>
#include <stdexcept> #include <algorithm>
#include <memory> #include <memory>
#include <cstdlib> #include <cstdlib>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "Log.hxx"
#include "PluginUnavailable.hxx" #include "PluginUnavailable.hxx"
extern "C" { extern "C" {
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "pcm/Buffer.hxx" #include "pcm/Buffer.hxx"
#include "config/Domain.hxx"
#include "util/DynamicFifoBuffer.hxx" #include "util/DynamicFifoBuffer.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "LameEncoderPlugin.hxx" #include "LameEncoderPlugin.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/Domain.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/ReusableArray.hxx" #include "util/ReusableArray.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "OpusEncoderPlugin.hxx" #include "OpusEncoderPlugin.hxx"
#include "OggEncoder.hxx" #include "OggEncoder.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/Domain.hxx"
#include "util/ByteOrder.hxx" #include "util/ByteOrder.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "ShineEncoderPlugin.hxx" #include "ShineEncoderPlugin.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/Domain.hxx"
#include "util/DynamicFifoBuffer.hxx" #include "util/DynamicFifoBuffer.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "TwolameEncoderPlugin.hxx" #include "TwolameEncoderPlugin.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/Domain.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "net/SocketError.hxx" #include "net/SocketError.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <algorithm> #include <stdexcept>
BufferedSocket::ssize_t BufferedSocket::ssize_t
BufferedSocket::DirectRead(void *data, size_t length) noexcept BufferedSocket::DirectRead(void *data, size_t length) noexcept
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "DeferEvent.hxx" #include "DeferEvent.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "util/Compiler.h"
#include <exception> #include <exception>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "IdleMonitor.hxx" #include "IdleMonitor.hxx"
#include "TimerEvent.hxx" #include "TimerEvent.hxx"
#include "SocketMonitor.hxx" #include "SocketMonitor.hxx"
#include "util/Compiler.h"
#include <forward_list> #include <forward_list>
#include <iterator> #include <iterator>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "net/IPv6Address.hxx" #include "net/IPv6Address.hxx"
#include "net/StaticSocketAddress.hxx" #include "net/StaticSocketAddress.hxx"
#include "net/AllocatedSocketAddress.hxx" #include "net/AllocatedSocketAddress.hxx"
#include "net/SocketAddress.hxx"
#include "net/SocketUtil.hxx" #include "net/SocketUtil.hxx"
#include "net/SocketError.hxx" #include "net/SocketError.hxx"
#include "net/UniqueSocketDescriptor.hxx" #include "net/UniqueSocketDescriptor.hxx"
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
#include "Log.hxx" #include "Log.hxx"
#include <string> #include <string>
#include <algorithm> #include <utility>
#include <assert.h> #include <assert.h>
......
...@@ -20,13 +20,9 @@ ...@@ -20,13 +20,9 @@
#include "SocketMonitor.hxx" #include "SocketMonitor.hxx"
#include "Loop.hxx" #include "Loop.hxx"
#include <assert.h> #include <utility>
#ifdef _WIN32 #include <assert.h>
#include <winsock2.h>
#else
#include <sys/socket.h>
#endif
void void
SocketMonitor::Dispatch(unsigned flags) noexcept SocketMonitor::Dispatch(unsigned flags) noexcept
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "AutoConvertFilterPlugin.hxx" #include "AutoConvertFilterPlugin.hxx"
#include "ConvertFilterPlugin.hxx" #include "ConvertFilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/Filter.hxx" #include "filter/Filter.hxx"
#include "filter/Prepared.hxx" #include "filter/Prepared.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
......
...@@ -21,11 +21,9 @@ ...@@ -21,11 +21,9 @@
#include "filter/Filter.hxx" #include "filter/Filter.hxx"
#include "filter/Prepared.hxx" #include "filter/Prepared.hxx"
#include "pcm/Convert.hxx" #include "pcm/Convert.hxx"
#include "util/Manual.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include <stdexcept>
#include <memory> #include <memory>
#include <assert.h> #include <assert.h>
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
#include "filter/FilterPlugin.hxx" #include "filter/FilterPlugin.hxx"
#include "filter/Filter.hxx" #include "filter/Filter.hxx"
#include "filter/Prepared.hxx" #include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "lib/ffmpeg/Filter.hxx" #include "lib/ffmpeg/Filter.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "AudioFormat.hxx"
class PreparedFfmpegFilter final : public PreparedFilter { class PreparedFfmpegFilter final : public PreparedFilter {
const char *const graph_string; const char *const graph_string;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "filter/FilterPlugin.hxx" #include "filter/FilterPlugin.hxx"
#include "filter/NullFilter.hxx" #include "filter/NullFilter.hxx"
#include "filter/Prepared.hxx" #include "filter/Prepared.hxx"
#include "AudioFormat.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
class PreparedNullFilter final : public PreparedFilter { class PreparedNullFilter final : public PreparedFilter {
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
*/ */
#include "RouteFilterPlugin.hxx" #include "RouteFilterPlugin.hxx"
#include "config/Domain.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "filter/FilterPlugin.hxx" #include "filter/FilterPlugin.hxx"
...@@ -53,8 +52,8 @@ ...@@ -53,8 +52,8 @@
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/WritableBuffer.hxx" #include "util/WritableBuffer.hxx"
#include <algorithm>
#include <array> #include <array>
#include <stdexcept>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include <stdexcept>
class VolumeFilter final : public Filter { class VolumeFilter final : public Filter {
PcmVolume pv; PcmVolume pv;
......
...@@ -18,13 +18,8 @@ ...@@ -18,13 +18,8 @@
*/ */
#include "AllocatedPath.hxx" #include "AllocatedPath.hxx"
#include "Domain.hxx"
#include "Charset.hxx" #include "Charset.hxx"
#include "Features.hxx" #include "Features.hxx"
#include "util/Compiler.h"
#include "config.h"
#include <exception>
/* no inlining, please */ /* no inlining, please */
AllocatedPath::~AllocatedPath() noexcept = default; AllocatedPath::~AllocatedPath() noexcept = default;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#endif #endif
#include <algorithm> #include <algorithm>
#include <stdexcept>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "DirectoryReader.hxx" #include "DirectoryReader.hxx"
#include "system/Error.hxx" #include "system/Error.hxx"
#include <errno.h>
void void
CheckDirectoryReadable(Path path_fs) CheckDirectoryReadable(Path path_fs)
try { try {
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Reader.hxx" #include "Reader.hxx"
#include "util/StaticFifoBuffer.hxx" #include "util/StaticFifoBuffer.hxx"
#include "util/Compiler.h"
#include <zlib.h> #include <zlib.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define GZIP_OUTPUT_STREAM_HXX #define GZIP_OUTPUT_STREAM_HXX
#include "OutputStream.hxx" #include "OutputStream.hxx"
#include "util/Compiler.h"
#include <zlib.h> #include <zlib.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_PEEK_READER_HXX #define MPD_PEEK_READER_HXX
#include "Reader.hxx" #include "Reader.hxx"
#include "util/Compiler.h"
#include <stdint.h> #include <stdint.h>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_TEXT_FILE_HXX #ifndef MPD_TEXT_FILE_HXX
#define MPD_TEXT_FILE_HXX #define MPD_TEXT_FILE_HXX
#include "util/Compiler.h"
#include "config.h" #include "config.h"
#include <memory> #include <memory>
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
*/ */
#include "BufferedInputStream.hxx" #include "BufferedInputStream.hxx"
#include "thread/Cond.hxx"
#include "thread/Name.hxx"
#include <string.h> #include <string.h>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include "BufferingInputStream.hxx" #include "BufferingInputStream.hxx"
#include "thread/Cond.hxx" #include "InputStream.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
#include <string.h> #include <string.h>
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#ifndef MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX #ifndef MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX
#define MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX #define MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX
#include "InputStream.hxx"
#include "Ptr.hxx" #include "Ptr.hxx"
#include "Handler.hxx" #include "Handler.hxx"
#include "thread/Thread.hxx" #include "thread/Thread.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "util/SparseBuffer.hxx" #include "util/SparseBuffer.hxx"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "ProxyInputStream.hxx" #include "ProxyInputStream.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include <stdexcept> #include <utility>
ProxyInputStream::ProxyInputStream(InputStreamPtr _input) noexcept ProxyInputStream::ProxyInputStream(InputStreamPtr _input) noexcept
:InputStream(_input->GetURI(), _input->mutex), :InputStream(_input->GetURI(), _input->mutex),
......
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
#define MPD_INPUT_READER_HXX #define MPD_INPUT_READER_HXX
#include "fs/io/Reader.hxx" #include "fs/io/Reader.hxx"
#include "util/Compiler.h"
struct Decoder;
class InputStream; class InputStream;
/** /**
......
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
#include "TextInputStream.hxx" #include "TextInputStream.hxx"
#include "InputStream.hxx" #include "InputStream.hxx"
#include "util/TextFile.hxx" #include "util/TextFile.hxx"
#include "Log.hxx"
#include <stdexcept>
#include <assert.h> #include <assert.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "Item.hxx" #include "Item.hxx"
#include "Lease.hxx" #include "Lease.hxx"
#include "input/InputStream.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
#include "input/BufferingInputStream.hxx" #include "input/BufferingInputStream.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/SparseBuffer.hxx"
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
#include <boost/intrusive/set_hook.hpp> #include <boost/intrusive/set_hook.hpp>
#include <memory>
#include <string> #include <string>
class InputCacheLease; class InputCacheLease;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_INPUT_CACHE_MANAGER_HXX #ifndef MPD_INPUT_CACHE_MANAGER_HXX
#define MPD_INPUT_CACHE_MANAGER_HXX #define MPD_INPUT_CACHE_MANAGER_HXX
#include "input/Offset.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
......
...@@ -30,11 +30,9 @@ ...@@ -30,11 +30,9 @@
#include "../InputPlugin.hxx" #include "../InputPlugin.hxx"
#include "../AsyncInputStream.hxx" #include "../AsyncInputStream.hxx"
#include "event/Call.hxx" #include "event/Call.hxx"
#include "thread/Cond.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/StringCompare.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/DivideString.hxx" #include "util/DivideString.hxx"
#include "AudioParser.hxx" #include "AudioParser.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
* CD-Audio handling (requires libcdio_paranoia) * CD-Audio handling (requires libcdio_paranoia)
*/ */
#include "config.h"
#include "CdioParanoiaInputPlugin.hxx" #include "CdioParanoiaInputPlugin.hxx"
#include "lib/cdio/Paranoia.hxx" #include "lib/cdio/Paranoia.hxx"
#include "../InputStream.hxx" #include "../InputStream.hxx"
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "config/Domain.hxx"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "CurlInputPlugin.hxx" #include "CurlInputPlugin.hxx"
#include "lib/curl/Error.hxx" #include "lib/curl/Error.hxx"
#include "lib/curl/Easy.hxx"
#include "lib/curl/Global.hxx" #include "lib/curl/Global.hxx"
#include "lib/curl/Init.hxx" #include "lib/curl/Init.hxx"
#include "lib/curl/Request.hxx" #include "lib/curl/Request.hxx"
...@@ -36,10 +35,8 @@ ...@@ -36,10 +35,8 @@
#include "event/Call.hxx" #include "event/Call.hxx"
#include "event/Loop.hxx" #include "event/Loop.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringUtil.hxx"
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "PluginUnavailable.hxx" #include "PluginUnavailable.hxx"
......
...@@ -23,15 +23,9 @@ ...@@ -23,15 +23,9 @@
#include "FfmpegInputPlugin.hxx" #include "FfmpegInputPlugin.hxx"
#include "lib/ffmpeg/IOContext.hxx" #include "lib/ffmpeg/IOContext.hxx"
#include "lib/ffmpeg/Init.hxx" #include "lib/ffmpeg/Init.hxx"
#include "lib/ffmpeg/Error.hxx"
#include "../InputStream.hxx" #include "../InputStream.hxx"
#include "PluginUnavailable.hxx" #include "PluginUnavailable.hxx"
#include "util/StringAPI.hxx"
#include "../InputPlugin.hxx" #include "../InputPlugin.hxx"
#include <iostream>
#include <exception>
#include <typeinfo>
#include <stdexcept>
class FfmpegInputStream final : public InputStream { class FfmpegInputStream final : public InputStream {
Ffmpeg::IOContext io; Ffmpeg::IOContext io;
...@@ -90,7 +84,7 @@ input_ffmpeg_protocols() { ...@@ -90,7 +84,7 @@ input_ffmpeg_protocols() {
protocols.emplace(schema); protocols.emplace(schema);
} }
} }
return protocols; return protocols;
} }
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "FileInputPlugin.hxx" #include "FileInputPlugin.hxx"
#include "../InputStream.hxx" #include "../InputStream.hxx"
#include "../InputPlugin.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/FileInfo.hxx" #include "fs/FileInfo.hxx"
#include "fs/io/FileReader.hxx" #include "fs/io/FileReader.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "input/ThreadInputStream.hxx" #include "input/ThreadInputStream.hxx"
#include "input/InputPlugin.hxx" #include "input/InputPlugin.hxx"
#include "system/Error.hxx" #include "system/Error.hxx"
#include "util/ASCII.hxx"
#include <libmms/mmsx.h> #include <libmms/mmsx.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "../InputPlugin.hxx" #include "../InputPlugin.hxx"
#include "lib/nfs/Glue.hxx" #include "lib/nfs/Glue.hxx"
#include "lib/nfs/FileReader.hxx" #include "lib/nfs/FileReader.hxx"
#include "util/ASCII.hxx"
/** /**
* Do not buffer more than this number of bytes. It should be a * Do not buffer more than this number of bytes. It should be a
......
...@@ -31,11 +31,8 @@ ...@@ -31,11 +31,8 @@
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include <stdexcept>
#include <memory> #include <memory>
#include <time.h>
static QobuzClient *qobuz_client; static QobuzClient *qobuz_client;
class QobuzInputStream final class QobuzInputStream final
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "QobuzSession.hxx" #include "QobuzSession.hxx"
#include "lib/curl/Form.hxx" #include "lib/curl/Form.hxx"
#include "lib/yajl/Callbacks.hxx" #include "lib/yajl/Callbacks.hxx"
#include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<QobuzLoginRequest::ResponseParser>; using Wrapper = Yajl::CallbacksWrapper<QobuzLoginRequest::ResponseParser>;
static constexpr yajl_callbacks parse_callbacks = { static constexpr yajl_callbacks parse_callbacks = {
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "QobuzErrorParser.hxx" #include "QobuzErrorParser.hxx"
#include "QobuzClient.hxx" #include "QobuzClient.hxx"
#include "lib/yajl/Callbacks.hxx" #include "lib/yajl/Callbacks.hxx"
#include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<QobuzTrackRequest::ResponseParser>; using Wrapper = Yajl::CallbacksWrapper<QobuzTrackRequest::ResponseParser>;
static constexpr yajl_callbacks parse_callbacks = { static constexpr yajl_callbacks parse_callbacks = {
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "../MaybeBufferedInputStream.hxx" #include "../MaybeBufferedInputStream.hxx"
#include "PluginUnavailable.hxx" #include "PluginUnavailable.hxx"
#include "system/Error.hxx" #include "system/Error.hxx"
#include "util/ASCII.hxx"
#include <libsmbclient.h> #include <libsmbclient.h>
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
#include <memory> #include <memory>
static constexpr Domain tidal_domain("tidal"); static constexpr Domain tidal_domain("tidal");
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "TidalSessionManager.hxx" #include "TidalSessionManager.hxx"
#include "lib/curl/Global.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
#include <memory> #include <memory>
#include <string> #include <string>
class CurlRequest;
class TidalLoginRequest;
/** /**
* Callback class for #TidalSessionManager. * Callback class for #TidalSessionManager.
* *
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#include <alsa/asoundlib.h> #include <alsa/asoundlib.h>
#include <stdlib.h>
gcc_pure gcc_pure
static uint_least32_t static uint_least32_t
ParseAlsaVersion(const char *p) noexcept ParseAlsaVersion(const char *p) noexcept
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "event/Call.hxx" #include "event/Call.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include <atomic>
#include <assert.h> #include <assert.h>
Mutex CurlInit::mutex; Mutex CurlInit::mutex;
......
...@@ -35,8 +35,7 @@ ...@@ -35,8 +35,7 @@
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <algorithm> #include <utility>
#include <stdexcept>
namespace ODBus { namespace ODBus {
......
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <algorithm>
#include <stdexcept> #include <stdexcept>
#include <utility>
namespace ODBus { namespace ODBus {
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "Connection.hxx" #include "Connection.hxx"
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <dbus/dbus.h> #include <dbus/dbus.h>
......
...@@ -37,4 +37,3 @@ FfmpegInit() ...@@ -37,4 +37,3 @@ FfmpegInit()
av_register_all(); av_register_all();
#endif #endif
} }
...@@ -30,8 +30,6 @@ extern "C" { ...@@ -30,8 +30,6 @@ extern "C" {
#include <libavutil/log.h> #include <libavutil/log.h>
} }
#include <stdio.h>
gcc_const gcc_const
static LogLevel static LogLevel
FfmpegImportLogLevel(int level) noexcept FfmpegImportLogLevel(int level) noexcept
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include "Hash.hxx" #include "Hash.hxx"
#include "util/HexFormat.hxx" #include "util/HexFormat.hxx"
#include <stdio.h>
std::array<uint8_t, 16> std::array<uint8_t, 16>
MD5(ConstBuffer<void> input) noexcept MD5(ConstBuffer<void> input) noexcept
{ {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "event/TimerEvent.hxx" #include "event/TimerEvent.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <string> #include <string>
#include <list> #include <list>
......
...@@ -34,9 +34,8 @@ ...@@ -34,9 +34,8 @@
#define UNIQUE_REGEX_HXX #define UNIQUE_REGEX_HXX
#include "RegexPointer.hxx" #include "RegexPointer.hxx"
#include "util/StringView.hxx"
#include <algorithm> #include <utility>
#include <pcre.h> #include <pcre.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef MPD_SQLITE_UTIL_HXX #ifndef MPD_SQLITE_UTIL_HXX
#define MPD_SQLITE_UTIL_HXX #define MPD_SQLITE_UTIL_HXX
#include "util/Compiler.h"
#include "Error.hxx" #include "Error.hxx"
#include <sqlite3.h> #include <sqlite3.h>
......
...@@ -21,11 +21,12 @@ ...@@ -21,11 +21,12 @@
#include "UniqueIxml.hxx" #include "UniqueIxml.hxx"
#include "Device.hxx" #include "Device.hxx"
#include "ixmlwrap.hxx" #include "ixmlwrap.hxx"
#include "Action.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/SplitString.hxx" #include "util/SplitString.hxx"
#include <upnptools.h>
ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device, ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
const UPnPService &service) noexcept const UPnPService &service) noexcept
:m_actionURL(uri_apply_base(service.controlURL, device.URLBase)), :m_actionURL(uri_apply_base(service.controlURL, device.URLBase)),
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "lib/curl/Request.hxx" #include "lib/curl/Request.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <upnp.h> #include <upnp.h>
...@@ -37,7 +36,6 @@ ...@@ -37,7 +36,6 @@
#include <list> #include <list>
#include <vector> #include <vector>
#include <string> #include <string>
#include <memory>
#include <chrono> #include <chrono>
#if UPNP_VERSION < 10800 #if UPNP_VERSION < 10800
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include "Util.hxx" #include "Util.hxx"
#include <assert.h>
/** Get rid of white space at both ends */ /** Get rid of white space at both ends */
void void
trimstring(std::string &s, const char *ws) noexcept trimstring(std::string &s, const char *ws) noexcept
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include <ixml.h> #include <ixml.h>
#include <string>
namespace ixmlwrap { namespace ixmlwrap {
/** /**
* Retrieve the text content for the first element of given * Retrieve the text content for the first element of given
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_FLAC_IO_HANDLE_HXX #ifndef MPD_FLAC_IO_HANDLE_HXX
#define MPD_FLAC_IO_HANDLE_HXX #define MPD_FLAC_IO_HANDLE_HXX
#include "util/Compiler.h"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include <FLAC/callback.h> #include <FLAC/callback.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#ifndef MPD_FLAC_STREAM_METADATA_HXX #ifndef MPD_FLAC_STREAM_METADATA_HXX
#define MPD_FLAC_STREAM_METADATA_HXX #define MPD_FLAC_STREAM_METADATA_HXX
#include <FLAC/metadata.h> #include <FLAC/format.h>
class TagHandler; class TagHandler;
class MixRampInfo; class MixRampInfo;
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include <ogg/ogg.h> #include <ogg/ogg.h>
#include <stddef.h>
class Reader; class Reader;
/** /**
......
...@@ -21,12 +21,9 @@ ...@@ -21,12 +21,9 @@
#include "MixerControl.hxx" #include "MixerControl.hxx"
#include "MixerInternal.hxx" #include "MixerInternal.hxx"
#include "MixerList.hxx" #include "MixerList.hxx"
#include "output/Filtered.hxx"
#include "pcm/Volume.hxx" #include "pcm/Volume.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
#include <assert.h> #include <assert.h>
gcc_pure gcc_pure
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_MIXER_TYPE_HXX #ifndef MPD_MIXER_TYPE_HXX
#define MPD_MIXER_TYPE_HXX #define MPD_MIXER_TYPE_HXX
#include "util/Compiler.h"
enum class MixerType { enum class MixerType {
/** mixer disabled */ /** mixer disabled */
NONE, NONE,
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "PulseMixerPlugin.hxx" #include "PulseMixerPlugin.hxx"
#include "lib/pulse/Domain.hxx"
#include "lib/pulse/LogError.hxx" #include "lib/pulse/LogError.hxx"
#include "lib/pulse/LockGuard.hxx" #include "lib/pulse/LockGuard.hxx"
#include "mixer/MixerInternal.hxx" #include "mixer/MixerInternal.hxx"
......
...@@ -17,11 +17,8 @@ ...@@ -17,11 +17,8 @@
*/ */
#include "mixer/MixerInternal.hxx" #include "mixer/MixerInternal.hxx"
#include "mixer/Listener.hxx"
#include "output/plugins/SndioOutputPlugin.hxx" #include "output/plugins/SndioOutputPlugin.hxx"
#include <sndio.h>
class SndioMixer final : public Mixer { class SndioMixer final : public Mixer {
SndioOutput &output; SndioOutput &output;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "NeighborPlugin.hxx" #include "NeighborPlugin.hxx"
#include "Info.hxx" #include "Info.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "config/Domain.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <libsmbclient.h> #include <libsmbclient.h>
#include <algorithm> #include <utility>
class SmbclientNeighborExplorer final : public NeighborExplorer { class SmbclientNeighborExplorer final : public NeighborExplorer {
struct Server { struct Server {
......
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
#include "util/Manual.hxx" #include "util/Manual.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
#include <string> #include <string>
#include <list>
#include <map> #include <map>
static NeighborInfo static NeighborInfo
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include "neighbor/Info.hxx" #include "neighbor/Info.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
class UpnpNeighborExplorer final class UpnpNeighborExplorer final
: public NeighborExplorer, UPnPDiscoveryListener { : public NeighborExplorer, UPnPDiscoveryListener {
struct Server { struct Server {
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "SocketAddress.hxx" #include "SocketAddress.hxx"
#include <algorithm>
#include <utility> #include <utility>
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -39,14 +39,6 @@ ...@@ -39,14 +39,6 @@
#include <sys/un.h> #include <sys/un.h>
#endif #endif
#ifdef HAVE_TCP
#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <netinet/in.h>
#endif
#endif
AllocatedSocketAddress & AllocatedSocketAddress &
AllocatedSocketAddress::operator=(SocketAddress src) noexcept AllocatedSocketAddress::operator=(SocketAddress src) noexcept
{ {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "Features.hxx" #include "Features.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <algorithm> #include <utility>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#ifndef NET_RESOLVER_HXX #ifndef NET_RESOLVER_HXX
#define NET_RESOLVER_HXX #define NET_RESOLVER_HXX
struct addrinfo;
class AddressInfoList; class AddressInfoList;
/** /**
......
...@@ -37,14 +37,6 @@ ...@@ -37,14 +37,6 @@
#include <string.h> #include <string.h>
#ifdef HAVE_TCP
#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <netinet/in.h>
#endif
#endif
StaticSocketAddress & StaticSocketAddress &
StaticSocketAddress::operator=(SocketAddress other) noexcept StaticSocketAddress::operator=(SocketAddress other) noexcept
{ {
......
...@@ -19,14 +19,10 @@ ...@@ -19,14 +19,10 @@
#include "Control.hxx" #include "Control.hxx"
#include "Filtered.hxx" #include "Filtered.hxx"
#include "Domain.hxx"
#include "mixer/MixerControl.hxx" #include "mixer/MixerControl.hxx"
#include "filter/plugins/ReplayGainFilterPlugin.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdexcept>
#include <assert.h> #include <assert.h>
/** after a failure, wait this duration before /** after a failure, wait this duration before
......
...@@ -28,16 +28,11 @@ ...@@ -28,16 +28,11 @@
#include "system/PeriodClock.hxx" #include "system/PeriodClock.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <utility>
#include <exception> #include <exception>
#include <memory> #include <memory>
#include <string> #include <string>
#include <map> #include <map>
#ifndef NDEBUG
#include <assert.h>
#endif
#include <stdint.h> #include <stdint.h>
enum class ReplayGainMode : uint8_t; enum class ReplayGainMode : uint8_t;
......
...@@ -30,12 +30,10 @@ ...@@ -30,12 +30,10 @@
class FilterFactory; class FilterFactory;
class PreparedFilter; class PreparedFilter;
class MusicPipe;
class EventLoop; class EventLoop;
class Mixer; class Mixer;
class MixerListener; class MixerListener;
struct MixerPlugin; struct MixerPlugin;
struct MusicChunk;
struct ConfigBlock; struct ConfigBlock;
class AudioOutput; class AudioOutput;
struct AudioOutputDefaults; struct AudioOutputDefaults;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "mixer/MixerList.hxx" #include "mixer/MixerList.hxx"
#include "mixer/MixerType.hxx" #include "mixer/MixerType.hxx"
#include "mixer/MixerControl.hxx" #include "mixer/MixerControl.hxx"
#include "mixer/plugins/SoftwareMixerPlugin.hxx"
#include "filter/LoadChain.hxx" #include "filter/LoadChain.hxx"
#include "filter/Prepared.hxx" #include "filter/Prepared.hxx"
#include "filter/plugins/AutoConvertFilterPlugin.hxx" #include "filter/plugins/AutoConvertFilterPlugin.hxx"
...@@ -35,9 +34,6 @@ ...@@ -35,9 +34,6 @@
#include "filter/plugins/ChainFilterPlugin.hxx" #include "filter/plugins/ChainFilterPlugin.hxx"
#include "filter/plugins/VolumeFilterPlugin.hxx" #include "filter/plugins/VolumeFilterPlugin.hxx"
#include "filter/plugins/NormalizeFilterPlugin.hxx" #include "filter/plugins/NormalizeFilterPlugin.hxx"
#include "config/Domain.hxx"
#include "config/Option.hxx"
#include "config/Block.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <map> #include <map>
#include <string> #include <string>
#include <chrono> #include <chrono>
#include <stdexcept>
struct AudioFormat; struct AudioFormat;
struct Tag; struct Tag;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "MultipleOutputs.hxx" #include "MultipleOutputs.hxx"
#include "Filtered.hxx" #include "Filtered.hxx"
#include "Defaults.hxx" #include "Defaults.hxx"
#include "Domain.hxx"
#include "MusicPipe.hxx" #include "MusicPipe.hxx"
#include "MusicChunk.hxx" #include "MusicChunk.hxx"
#include "filter/Factory.hxx" #include "filter/Factory.hxx"
......
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
#include "OutputCommand.hxx" #include "OutputCommand.hxx"
#include "MultipleOutputs.hxx" #include "MultipleOutputs.hxx"
#include "Filtered.hxx"
#include "Client.hxx" #include "Client.hxx"
#include "player/Control.hxx"
#include "mixer/MixerControl.hxx" #include "mixer/MixerControl.hxx"
#include "mixer/Volume.hxx" #include "mixer/Volume.hxx"
#include "Idle.hxx" #include "Idle.hxx"
......
...@@ -22,13 +22,7 @@ ...@@ -22,13 +22,7 @@
#include "util/Compiler.h" #include "util/Compiler.h"
#include <chrono>
#include <stddef.h>
struct ConfigBlock; struct ConfigBlock;
struct AudioFormat;
struct Tag;
class AudioOutput; class AudioOutput;
struct MixerPlugin; struct MixerPlugin;
class EventLoop; class EventLoop;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "Print.hxx" #include "Print.hxx"
#include "MultipleOutputs.hxx" #include "MultipleOutputs.hxx"
#include "Filtered.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
void void
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef AUDIO_OUTPUT_SOURCE_HXX #ifndef AUDIO_OUTPUT_SOURCE_HXX
#define AUDIO_OUTPUT_SOURCE_HXX #define AUDIO_OUTPUT_SOURCE_HXX
#include "util/Compiler.h"
#include "SharedPipeConsumer.hxx" #include "SharedPipeConsumer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "ReplayGainMode.hxx" #include "ReplayGainMode.hxx"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "State.hxx" #include "State.hxx"
#include "MultipleOutputs.hxx" #include "MultipleOutputs.hxx"
#include "Filtered.hxx"
#include "Domain.hxx" #include "Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Filtered.hxx" #include "Filtered.hxx"
#include "Client.hxx" #include "Client.hxx"
#include "Domain.hxx" #include "Domain.hxx"
#include "mixer/MixerInternal.hxx"
#include "thread/Util.hxx" #include "thread/Util.hxx"
#include "thread/Slack.hxx" #include "thread/Slack.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "Timer.hxx" #include "Timer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include <limits>
#include <assert.h> #include <assert.h>
Timer::Timer(const AudioFormat af) Timer::Timer(const AudioFormat af)
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/ScopeExit.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "event/MultiSocketMonitor.hxx" #include "event/MultiSocketMonitor.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "JackOutputPlugin.hxx" #include "JackOutputPlugin.hxx"
#include "../OutputAPI.hxx" #include "../OutputAPI.hxx"
#include "config/Domain.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/IterableSplitString.hxx" #include "util/IterableSplitString.hxx"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "PulseOutputPlugin.hxx" #include "PulseOutputPlugin.hxx"
#include "lib/pulse/Domain.hxx"
#include "lib/pulse/Error.hxx" #include "lib/pulse/Error.hxx"
#include "lib/pulse/LogError.hxx" #include "lib/pulse/LogError.hxx"
#include "lib/pulse/LockGuard.hxx" #include "lib/pulse/LockGuard.hxx"
...@@ -26,7 +25,6 @@ ...@@ -26,7 +25,6 @@
#include "mixer/MixerList.hxx" #include "mixer/MixerList.hxx"
#include "mixer/plugins/PulseMixerPlugin.hxx" #include "mixer/plugins/PulseMixerPlugin.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"
#include "Log.hxx"
#include <pulse/thread-mainloop.h> #include <pulse/thread-mainloop.h>
#include <pulse/context.h> #include <pulse/context.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "encoder/ToOutputStream.hxx" #include "encoder/ToOutputStream.hxx"
#include "encoder/EncoderInterface.hxx" #include "encoder/EncoderInterface.hxx"
#include "encoder/Configured.hxx" #include "encoder/Configured.hxx"
#include "config/Domain.hxx"
#include "config/Path.hxx" #include "config/Path.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <memory> #include <memory>
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "config.h"
#include "HttpdOutputPlugin.hxx" #include "HttpdOutputPlugin.hxx"
#include "HttpdInternal.hxx" #include "HttpdInternal.hxx"
#include "HttpdClient.hxx" #include "HttpdClient.hxx"
...@@ -26,19 +25,16 @@ ...@@ -26,19 +25,16 @@
#include "encoder/Configured.hxx" #include "encoder/Configured.hxx"
#include "net/UniqueSocketDescriptor.hxx" #include "net/UniqueSocketDescriptor.hxx"
#include "net/SocketAddress.hxx" #include "net/SocketAddress.hxx"
#include "net/ToString.hxx"
#include "Page.hxx" #include "Page.hxx"
#include "IcyMetaDataServer.hxx" #include "IcyMetaDataServer.hxx"
#include "event/Call.hxx" #include "event/Call.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "util/DeleteDisposer.hxx" #include "util/DeleteDisposer.hxx"
#include "Log.hxx"
#include "config/Net.hxx" #include "config/Net.hxx"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <errno.h>
const Domain httpd_output_domain("httpd_output"); const Domain httpd_output_domain("httpd_output");
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "FallbackResampler.hxx" #include "FallbackResampler.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "config/Option.hxx" #include "config/Option.hxx"
#include "config/Domain.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "config/Param.hxx" #include "config/Param.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "Export.hxx" #include "Export.hxx"
#include "AudioFormat.hxx"
#include "Order.hxx" #include "Order.hxx"
#include "Pack.hxx" #include "Pack.hxx"
#include "Silence.hxx" #include "Silence.hxx"
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <stdint.h> #include <stdint.h>
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
struct AudioFormat;
/** /**
* An object that handles export of PCM samples to some instance * An object that handles export of PCM samples to some instance
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "Resampler.hxx" #include "Resampler.hxx"
#include "Buffer.hxx" #include "Buffer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/Compiler.h"
/** /**
* A naive resampler that is used when no external library was found * A naive resampler that is used when no external library was found
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define MPD_PCM_FLOAT_CONVERT_HXX #define MPD_PCM_FLOAT_CONVERT_HXX
#include "Traits.hxx" #include "Traits.hxx"
#include "Clamp.hxx"
/** /**
* Convert from float to an integer sample format. * Convert from float to an integer sample format.
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "GlueResampler.hxx" #include "GlueResampler.hxx"
#include "ConfiguredResampler.hxx" #include "ConfiguredResampler.hxx"
#include "Resampler.hxx" #include "Resampler.hxx"
#include "AudioFormat.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
#ifndef MPD_GLUE_RESAMPLER_HXX #ifndef MPD_GLUE_RESAMPLER_HXX
#define MPD_GLUE_RESAMPLER_HXX #define MPD_GLUE_RESAMPLER_HXX
#include "AudioFormat.hxx" #include "SampleFormat.hxx"
#include "FormatConverter.hxx" #include "FormatConverter.hxx"
struct AudioFormat;
class PcmResampler; class PcmResampler;
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "Resampler.hxx" #include "Resampler.hxx"
#include "Buffer.hxx" #include "Buffer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/Compiler.h"
#include <samplerate.h> #include <samplerate.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "PcmFormat.hxx" #include "PcmFormat.hxx"
#include "Buffer.hxx" #include "Buffer.hxx"
#include "Clamp.hxx"
#include "Traits.hxx" #include "Traits.hxx"
#include "FloatConvert.hxx" #include "FloatConvert.hxx"
#include "ShiftConvert.hxx" #include "ShiftConvert.hxx"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Resampler.hxx" #include "Resampler.hxx"
#include "Buffer.hxx" #include "Buffer.hxx"
#include "util/Compiler.h"
struct AudioFormat; struct AudioFormat;
struct ConfigBlock; struct ConfigBlock;
......
...@@ -32,7 +32,6 @@ or implied, of Sebastian Gesemann. ...@@ -32,7 +32,6 @@ or implied, of Sebastian Gesemann.
#define DSD2PCM_H_INCLUDED #define DSD2PCM_H_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <string.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "SongEnumerator.hxx" #include "SongEnumerator.hxx"
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
#include "util/Compiler.h"
#include <forward_list> #include <forward_list>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "PlaylistStream.hxx" #include "PlaylistStream.hxx"
#include "PlaylistMapper.hxx" #include "PlaylistMapper.hxx"
#include "SongEnumerator.hxx" #include "SongEnumerator.hxx"
#include "util/UriUtil.hxx"
#include "config.h" #include "config.h"
std::unique_ptr<SongEnumerator> std::unique_ptr<SongEnumerator>
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include "config/Block.hxx" #include "config/Block.hxx"
#include <assert.h> #include <assert.h>
#include <string.h>
const struct playlist_plugin *const playlist_plugins[] = { const struct playlist_plugin *const playlist_plugins[] = {
&extm3u_playlist_plugin, &extm3u_playlist_plugin,
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include "Log.hxx"
/** /**
* This is the state object for our XML parser. * This is the state object for our XML parser.
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include "Log.hxx"
/** /**
* This is the state object for the our XML parser. * This is the state object for the our XML parser.
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "tag/Builder.hxx" #include "tag/Builder.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include "Log.hxx"
#include <string.h> #include <string.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
#include <stdexcept> #include <stdexcept>
#include <utility>
class Domain; class Domain;
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
#include "SongLoader.hxx" #include "SongLoader.hxx"
#include <memory>
#include <stdlib.h> #include <stdlib.h>
void void
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "SingleMode.hxx" #include "SingleMode.hxx"
#include "util/LazyRandomEngine.hxx" #include "util/LazyRandomEngine.hxx"
#include <algorithm> #include <utility>
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_BASE_SONG_FILTER_HXX #define MPD_BASE_SONG_FILTER_HXX
#include "ISongFilter.hxx" #include "ISongFilter.hxx"
#include "util/Compiler.h"
class BaseSongFilter final : public ISongFilter { class BaseSongFilter final : public ISongFilter {
std::string value; std::string value;
......
...@@ -25,24 +25,17 @@ ...@@ -25,24 +25,17 @@
#include "TagSongFilter.hxx" #include "TagSongFilter.hxx"
#include "ModifiedSinceSongFilter.hxx" #include "ModifiedSinceSongFilter.hxx"
#include "AudioFormatSongFilter.hxx" #include "AudioFormatSongFilter.hxx"
#include "LightSong.hxx"
#include "AudioParser.hxx" #include "AudioParser.hxx"
#include "tag/ParseName.hxx" #include "tag/ParseName.hxx"
#include "tag/Tag.hxx"
#include "time/ChronoUtil.hxx"
#include "time/ISO8601.hxx" #include "time/ISO8601.hxx"
#include "util/CharUtil.hxx" #include "util/CharUtil.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/StringAPI.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/StringStrip.hxx" #include "util/StringStrip.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "lib/icu/CaseFold.hxx"
#include <exception>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include "StringFilter.hxx" #include "StringFilter.hxx"
#include "util/StringCompare.hxx" #include "util/StringAPI.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
#include <stdint.h> #include <stdint.h>
template<typename T> struct ConstBuffer;
enum TagType : uint8_t; enum TagType : uint8_t;
struct Tag; struct Tag;
struct TagItem;
struct LightSong; struct LightSong;
class TagSongFilter final : public ISongFilter { class TagSongFilter final : public ISongFilter {
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include "Match.hxx" #include "Match.hxx"
#include "lib/sqlite/Database.hxx" #include "lib/sqlite/Database.hxx"
#include "util/Compiler.h"
#include <sqlite3.h> #include <sqlite3.h>
......
...@@ -22,14 +22,11 @@ ...@@ -22,14 +22,11 @@
#include "StorageInterface.hxx" #include "StorageInterface.hxx"
#include "plugins/LocalStorage.hxx" #include "plugins/LocalStorage.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "config/Domain.hxx"
#include "fs/StandardDirectory.hxx" #include "fs/StandardDirectory.hxx"
#include "fs/CheckFile.hxx" #include "fs/CheckFile.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include <assert.h>
static std::unique_ptr<Storage> static std::unique_ptr<Storage>
CreateConfiguredStorageUri(EventLoop &event_loop, const char *uri) CreateConfiguredStorageUri(EventLoop &event_loop, const char *uri)
{ {
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "plugins/CurlStorage.hxx" #include "plugins/CurlStorage.hxx"
#include "config.h" #include "config.h"
#include <assert.h>
#include <string.h> #include <string.h>
const StoragePlugin *const storage_plugins[] = { const StoragePlugin *const storage_plugins[] = {
......
...@@ -29,11 +29,9 @@ ...@@ -29,11 +29,9 @@
#include "lib/curl/Handler.hxx" #include "lib/curl/Handler.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "event/Call.hxx"
#include "event/DeferEvent.hxx" #include "event/DeferEvent.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "time/ChronoUtil.hxx"
#include "time/Parser.hxx" #include "time/Parser.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/IterableSplitString.hxx" #include "util/IterableSplitString.hxx"
...@@ -42,10 +40,9 @@ ...@@ -42,10 +40,9 @@
#include "util/StringFormat.hxx" #include "util/StringFormat.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include <algorithm>
#include <memory> #include <memory>
#include <string> #include <string>
#include <list> #include <utility>
#include <assert.h> #include <assert.h>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "lib/dbus/Glue.hxx" #include "lib/dbus/Glue.hxx"
#include "lib/dbus/AsyncRequest.hxx" #include "lib/dbus/AsyncRequest.hxx"
#include "lib/dbus/Message.hxx" #include "lib/dbus/Message.hxx"
#include "lib/dbus/PendingCall.hxx"
#include "lib/dbus/AppendIter.hxx" #include "lib/dbus/AppendIter.hxx"
#include "lib/dbus/ReadIter.hxx" #include "lib/dbus/ReadIter.hxx"
#include "lib/dbus/ObjectManager.hxx" #include "lib/dbus/ObjectManager.hxx"
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
#ifndef MPD_CLOCK_H #ifndef MPD_CLOCK_H
#define MPD_CLOCK_H #define MPD_CLOCK_H
#ifdef _WIN32
#include "util/Compiler.h" #include "util/Compiler.h"
#include <chrono> #include <chrono>
#ifdef _WIN32
/** /**
* Returns the uptime of the current process in seconds. * Returns the uptime of the current process in seconds.
*/ */
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include <sys/epoll.h> #include <sys/epoll.h>
#include <stdint.h> #include <stdint.h>
struct epoll_event;
/** /**
* A class that wraps Linux epoll. * A class that wraps Linux epoll.
*/ */
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "EventPipe.hxx" #include "EventPipe.hxx"
#include "FileDescriptor.hxx" #include "FileDescriptor.hxx"
#include "system/Error.hxx" #include "system/Error.hxx"
#include "util/ScopeExit.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <assert.h> #include <assert.h>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "util/WritableBuffer.hxx" #include "util/WritableBuffer.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include <algorithm>
#include <array> #include <array>
#include <assert.h> #include <assert.h>
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "input/LocalOpen.hxx" #include "input/LocalOpen.hxx"
#include "config.h" #include "config.h"
#include <exception>
bool bool
ScanGenericTags(InputStream &is, TagHandler &handler) ScanGenericTags(InputStream &is, TagHandler &handler)
{ {
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "Handler.hxx" #include "Handler.hxx"
#include "Builder.hxx" #include "Builder.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/ASCII.hxx"
#include "util/CharUtil.hxx" #include "util/CharUtil.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include <assert.h> #include <assert.h>
#include <stdlib.h>
template<typename T> template<typename T>
static bool static bool
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include "Chrono.hxx" #include "Chrono.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include <algorithm>
#include <memory> #include <memory>
#include <utility>
/** /**
* The meta information about a song file. It is a MPD specific * The meta information about a song file. It is a MPD specific
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "util/Compiler.h" #include "util/Compiler.h"
#include <string>
#include <chrono> #include <chrono>
#include <stddef.h> #include <stddef.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Daemon.hxx" #include "Daemon.hxx"
#include "system/Error.hxx" #include "system/Error.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#ifndef _WIN32 #ifndef _WIN32
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "StringPointer.hxx" #include "StringPointer.hxx"
#include <utility>
#include <algorithm> #include <algorithm>
/** /**
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_DIVIDE_STRING_HXX #ifndef MPD_DIVIDE_STRING_HXX
#define MPD_DIVIDE_STRING_HXX #define MPD_DIVIDE_STRING_HXX
#include "Compiler.h"
#include <assert.h> #include <assert.h>
/** /**
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <exception> #include <exception>
#include <string> #include <string>
#include <utility>
/** /**
* Throws the specified exception. There is an overload for * Throws the specified exception. There is an overload for
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "StringBuffer.hxx" #include "StringBuffer.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
/** /**
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include <string.h>
inline const char * inline const char *
OptionParser::CheckShiftValue(const char *s, const OptionDef &option) OptionParser::CheckShiftValue(const char *s, const OptionDef &option)
{ {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#ifndef PRINT_EXCEPTION_HXX #ifndef PRINT_EXCEPTION_HXX
#define PRINT_EXCEPTION_HXX #define PRINT_EXCEPTION_HXX
#include <stdexcept> #include <exception>
/** /**
* Print this exception (and its nested exceptions, if any) to stderr. * Print this exception (and its nested exceptions, if any) to stderr.
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include "IterableSplitString.hxx" #include "IterableSplitString.hxx"
#include "StringStrip.hxx" #include "StringStrip.hxx"
#include <string.h>
std::forward_list<std::string> std::forward_list<std::string>
SplitString(const char *s, char separator, bool strip) noexcept SplitString(const char *s, char separator, bool strip) noexcept
{ {
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_AVAHI_POLL_HXX #ifndef MPD_AVAHI_POLL_HXX
#define MPD_AVAHI_POLL_HXX #define MPD_AVAHI_POLL_HXX
#include "util/Compiler.h"
#include <avahi-common/watch.h> #include <avahi-common/watch.h>
class EventLoop; class EventLoop;
......
...@@ -21,11 +21,9 @@ ...@@ -21,11 +21,9 @@
#include "config/Param.hxx" #include "config/Param.hxx"
#include "config/File.hxx" #include "config/File.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/Path.hxx"
#include "util/PrintException.hxx" #include "util/PrintException.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
#include "protocol/ArgParser.hxx" #include "protocol/ArgParser.hxx"
#include "protocol/Ack.hxx" #include "protocol/Ack.hxx"
#include "protocol/RangeArg.hxx" #include "protocol/RangeArg.hxx"
#include "util/Compiler.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <stdlib.h>
TEST(ArgParser, Range) TEST(ArgParser, Range)
{ {
RangeArg range = ParseCommandArgRange("1"); RangeArg range = ParseCommandArgRange("1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment