Commit 1aee89f5 authored by Max Kellermann's avatar Max Kellermann

*: include cleanup (using iwyu)

parent fb547260
...@@ -240,7 +240,6 @@ UPNP_SOURCES = \ ...@@ -240,7 +240,6 @@ UPNP_SOURCES = \
src/lib/upnp/Device.cxx src/lib/upnp/Device.hxx \ src/lib/upnp/Device.cxx src/lib/upnp/Device.hxx \
src/lib/upnp/ContentDirectoryService.cxx src/lib/upnp/ContentDirectoryService.hxx \ src/lib/upnp/ContentDirectoryService.cxx src/lib/upnp/ContentDirectoryService.hxx \
src/lib/upnp/Discovery.cxx src/lib/upnp/Discovery.hxx \ src/lib/upnp/Discovery.cxx src/lib/upnp/Discovery.hxx \
src/lib/upnp/Domain.cxx src/lib/upnp/Domain.hxx \
src/lib/upnp/ixmlwrap.cxx src/lib/upnp/ixmlwrap.hxx \ src/lib/upnp/ixmlwrap.cxx src/lib/upnp/ixmlwrap.hxx \
src/lib/upnp/Callback.hxx \ src/lib/upnp/Callback.hxx \
src/lib/upnp/Util.cxx src/lib/upnp/Util.hxx \ src/lib/upnp/Util.cxx src/lib/upnp/Util.hxx \
...@@ -607,7 +606,6 @@ libfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) ...@@ -607,7 +606,6 @@ libfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS)
if ENABLE_ZLIB if ENABLE_ZLIB
libfs_a_SOURCES += \ libfs_a_SOURCES += \
src/lib/zlib/Domain.cxx src/lib/zlib/Domain.hxx \
src/lib/zlib/Error.cxx src/lib/zlib/Error.hxx \ src/lib/zlib/Error.cxx src/lib/zlib/Error.hxx \
src/fs/io/GunzipReader.cxx src/fs/io/GunzipReader.hxx \ src/fs/io/GunzipReader.cxx src/fs/io/GunzipReader.hxx \
src/fs/io/AutoGunzipReader.cxx src/fs/io/AutoGunzipReader.hxx \ src/fs/io/AutoGunzipReader.cxx src/fs/io/AutoGunzipReader.hxx \
......
...@@ -20,11 +20,9 @@ ...@@ -20,11 +20,9 @@
#include "config.h" #include "config.h"
#include "LogV.hxx" #include "LogV.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
#include <exception> #include <exception>
#include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#define LOG_LEVEL_SECURE LogLevel::INFO #define LOG_LEVEL_SECURE LogLevel::INFO
......
...@@ -51,9 +51,7 @@ ...@@ -51,9 +51,7 @@
#include "pcm/PcmConvert.hxx" #include "pcm/PcmConvert.hxx"
#include "unix/SignalHandlers.hxx" #include "unix/SignalHandlers.hxx"
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "thread/Id.hxx"
#include "thread/Slack.hxx" #include "thread/Slack.hxx"
#include "lib/icu/Init.hxx" #include "lib/icu/Init.hxx"
#include "config/ConfigGlobal.hxx" #include "config/ConfigGlobal.hxx"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "config.h" #include "config.h"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx"
#include "fs/Charset.hxx"
#include "fs/CheckFile.hxx" #include "fs/CheckFile.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#include "mixer/Volume.hxx" #include "mixer/Volume.hxx"
#include "Idle.hxx" #include "Idle.hxx"
#include "GlobalEvents.hxx" #include "GlobalEvents.hxx"
......
...@@ -43,12 +43,10 @@ ...@@ -43,12 +43,10 @@
#include "util/Macros.hxx" #include "util/Macros.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include <memory> #include <memory>
#include <assert.h> #include <assert.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
......
...@@ -20,19 +20,15 @@ ...@@ -20,19 +20,15 @@
#include "config.h" #include "config.h"
#include "PlaylistPrint.hxx" #include "PlaylistPrint.hxx"
#include "PlaylistFile.hxx" #include "PlaylistFile.hxx"
#include "PlaylistError.hxx"
#include "queue/Playlist.hxx" #include "queue/Playlist.hxx"
#include "queue/QueuePrint.hxx" #include "queue/QueuePrint.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx" #include "Instance.hxx"
#include "db/Interface.hxx" #include "db/Interface.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "input/InputStream.hxx"
#include "DetachedSong.hxx"
#include "fs/Traits.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "thread/Cond.hxx"
#define SONG_FILE "file: " #define SONG_FILE "file: "
#define SONG_TIME "Time: " #define SONG_TIME "Time: "
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
struct playlist; struct playlist;
struct Partition; struct Partition;
class SongFilter; class SongFilter;
class Client;
class Response; class Response;
class Error;
/** /**
* Sends the whole playlist to the client, song URIs only. * Sends the whole playlist to the client, song URIs only.
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "PlaylistError.hxx" #include "PlaylistError.hxx"
#include "queue/Playlist.hxx" #include "queue/Playlist.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "SongLoader.hxx"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "Idle.hxx" #include "Idle.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
...@@ -32,12 +31,7 @@ ...@@ -32,12 +31,7 @@
#include "fs/NarrowPath.hxx" #include "fs/NarrowPath.hxx"
#include "fs/io/FileOutputStream.hxx" #include "fs/io/FileOutputStream.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "util/Alloc.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include <string.h>
void void
playlist_print_song(BufferedOutputStream &os, const DetachedSong &song) playlist_print_song(BufferedOutputStream &os, const DetachedSong &song)
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
struct Tag; struct Tag;
struct TagItem; struct TagItem;
struct Song;
struct LightSong; struct LightSong;
class DetachedSong; class DetachedSong;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#define SONG_BEGIN "song_begin: " #define SONG_BEGIN "song_begin: "
struct Song; struct Song;
struct Directory;
class DetachedSong; class DetachedSong;
class BufferedOutputStream; class BufferedOutputStream;
class TextFile; class TextFile;
......
...@@ -26,10 +26,7 @@ ...@@ -26,10 +26,7 @@
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx"
#include "fs/FileInfo.hxx" #include "fs/FileInfo.hxx"
#include "decoder/DecoderList.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx" #include "tag/TagBuilder.hxx"
#include "TagFile.hxx" #include "TagFile.hxx"
#include "TagStream.hxx" #include "TagStream.hxx"
...@@ -40,7 +37,6 @@ ...@@ -40,7 +37,6 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <sys/stat.h>
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "Instance.hxx" #include "Instance.hxx"
#include "mixer/Volume.hxx" #include "mixer/Volume.hxx"
#include "SongLoader.hxx" #include "SongLoader.hxx"
#include "fs/FileSystem.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "TagArchive.hxx" #include "TagArchive.hxx"
#include "TagStream.hxx" #include "TagStream.hxx"
#include "tag/Generic.hxx"
#include "archive/ArchiveFile.hxx" #include "archive/ArchiveFile.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx" #include "tag/TagBuilder.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "decoder/DecoderList.hxx" #include "decoder/DecoderList.hxx"
#include "decoder/DecoderPlugin.hxx" #include "decoder/DecoderPlugin.hxx"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "ArchivePlugin.hxx" #include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -27,12 +27,11 @@ ...@@ -27,12 +27,11 @@
#include "../ArchiveFile.hxx" #include "../ArchiveFile.hxx"
#include "../ArchiveVisitor.hxx" #include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
#include "input/LocalOpen.hxx" #include "input/LocalOpen.hxx"
#include "thread/Cond.hxx"
#include "util/RefCount.hxx" #include "util/RefCount.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "fs/Traits.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include <bzlib.h> #include <bzlib.h>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "../ArchiveFile.hxx" #include "../ArchiveFile.hxx"
#include "../ArchiveVisitor.hxx" #include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/RefCount.hxx" #include "util/RefCount.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "../ArchiveFile.hxx" #include "../ArchiveFile.hxx"
#include "../ArchiveVisitor.hxx" #include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/RefCount.hxx" #include "util/RefCount.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
#include "event/TimeoutMonitor.hxx" #include "event/TimeoutMonitor.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <boost/intrusive/list.hpp> #include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
#include <set> #include <set>
#include <string> #include <string>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "Client.hxx" #include "Client.hxx"
class Client; #include <boost/intrusive/list.hpp>
class ClientList { class ClientList {
typedef boost::intrusive::list<Client, typedef boost::intrusive::list<Client,
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "net/SocketAddress.hxx" #include "net/SocketAddress.hxx"
#include "net/ToString.hxx" #include "net/ToString.hxx"
#include "Permission.hxx" #include "Permission.hxx"
#include "util/Error.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include "util/Macros.hxx" #include "util/Macros.hxx"
#include "util/Tokenizer.hxx" #include "util/Tokenizer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include <system_error> #include <system_error>
#include <assert.h> #include <assert.h>
#include <string.h>
#include <errno.h>
gcc_const gcc_const
static enum ack static enum ack
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "DatabaseCommands.hxx" #include "DatabaseCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "db/DatabaseGlue.hxx"
#include "db/DatabaseQueue.hxx" #include "db/DatabaseQueue.hxx"
#include "db/DatabasePlaylist.hxx" #include "db/DatabasePlaylist.hxx"
#include "db/DatabasePrint.hxx" #include "db/DatabasePrint.hxx"
...@@ -36,8 +35,6 @@ ...@@ -36,8 +35,6 @@
#include "SongFilter.hxx" #include "SongFilter.hxx"
#include "BulkEdit.hxx" #include "BulkEdit.hxx"
#include <string.h>
CommandResult CommandResult
handle_listfiles_db(Client &client, Response &r, const char *uri) handle_listfiles_db(Client &client, Response &r, const char *uri)
{ {
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "protocol/Ack.hxx" #include "protocol/Ack.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "util/ConstBuffer.hxx"
#include "util/CharUtil.hxx" #include "util/CharUtil.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
...@@ -42,7 +41,6 @@ ...@@ -42,7 +41,6 @@
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include <assert.h> #include <assert.h>
#include <sys/stat.h>
#include <inttypes.h> /* for PRIu64 */ #include <inttypes.h> /* for PRIu64 */
gcc_pure gcc_pure
......
...@@ -26,13 +26,9 @@ ...@@ -26,13 +26,9 @@
#include "Partition.hxx" #include "Partition.hxx"
#include "neighbor/Glue.hxx" #include "neighbor/Glue.hxx"
#include "neighbor/Info.hxx" #include "neighbor/Info.hxx"
#include "util/ConstBuffer.hxx"
#include <set>
#include <string> #include <string>
#include <assert.h>
bool bool
neighbor_commands_available(const Instance &instance) neighbor_commands_available(const Instance &instance)
{ {
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "mixer/Volume.hxx" #include "mixer/Volume.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "Stats.hxx" #include "Stats.hxx"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "util/ConstBuffer.hxx"
CommandResult CommandResult
handle_enableoutput(Client &client, Request args, Response &r) handle_enableoutput(Client &client, Request args, Response &r)
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "Instance.hxx" #include "Instance.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "ReplayGainConfig.hxx" #include "ReplayGainConfig.hxx"
#include "util/ConstBuffer.hxx"
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
#include "db/update/Service.hxx" #include "db/update/Service.hxx"
......
...@@ -30,11 +30,9 @@ ...@@ -30,11 +30,9 @@
#include "BulkEdit.hxx" #include "BulkEdit.hxx"
#include "playlist/PlaylistQueue.hxx" #include "playlist/PlaylistQueue.hxx"
#include "playlist/Print.hxx" #include "playlist/Print.hxx"
#include "queue/Playlist.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "ls.hxx"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
......
...@@ -35,16 +35,12 @@ ...@@ -35,16 +35,12 @@
#include "BulkEdit.hxx" #include "BulkEdit.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
#include "util/UriUtil.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "fs/AllocatedPath.hxx"
#include <memory> #include <memory>
#include <limits> #include <limits>
#include <string.h>
static CommandResult static CommandResult
AddUri(Client &client, const LocatedUri &uri, Response &r) AddUri(Client &client, const LocatedUri &uri, Response &r)
{ {
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Request.hxx" #include "Request.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "db/Interface.hxx" #include "db/Interface.hxx"
#include "db/DatabaseGlue.hxx"
#include "sticker/SongSticker.hxx" #include "sticker/SongSticker.hxx"
#include "sticker/StickerPrint.hxx" #include "sticker/StickerPrint.hxx"
#include "sticker/StickerDatabase.hxx" #include "sticker/StickerDatabase.hxx"
...@@ -30,7 +29,6 @@ ...@@ -30,7 +29,6 @@
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "Instance.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/StringAPI.hxx" #include "util/StringAPI.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "TagCommands.hxx" #include "TagCommands.hxx"
#include "Request.hxx" #include "Request.hxx"
#include "CommandError.hxx"
#include "client/Client.hxx" #include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_CONFIG_FILE_HXX #ifndef MPD_CONFIG_FILE_HXX
#define MPD_CONFIG_FILE_HXX #define MPD_CONFIG_FILE_HXX
class Error;
class Path; class Path;
struct ConfigData; struct ConfigData;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/StandardDirectory.hxx" #include "fs/StandardDirectory.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "Log.hxx"
Database * Database *
CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener, CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener,
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "config/Block.hxx" #include "config/Block.hxx"
#include "DatabasePlugin.hxx" #include "DatabasePlugin.hxx"
#include <string.h>
Database * Database *
DatabaseGlobalInit(EventLoop &loop, DatabaseListener &listener, DatabaseGlobalInit(EventLoop &loop, DatabaseListener &listener,
const ConfigBlock &block, Error &error) const ConfigBlock &block, Error &error)
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "PlaylistFile.hxx" #include "PlaylistFile.hxx"
#include "Interface.hxx" #include "Interface.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "storage/StorageInterface.hxx"
#include <functional> #include <functional>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "SongFilter.hxx" #include "SongFilter.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
......
...@@ -21,12 +21,10 @@ ...@@ -21,12 +21,10 @@
#define MPD_DB_PRINT_H #define MPD_DB_PRINT_H
#include "tag/Mask.hxx" #include "tag/Mask.hxx"
#include "Compiler.h"
class SongFilter; class SongFilter;
struct DatabaseSelection; struct DatabaseSelection;
struct Partition; struct Partition;
class Client;
class Response; class Response;
class Error; class Error;
......
...@@ -43,7 +43,6 @@ static constexpr unsigned DEVICE_INARCHIVE = -1; ...@@ -43,7 +43,6 @@ static constexpr unsigned DEVICE_INARCHIVE = -1;
*/ */
static constexpr unsigned DEVICE_CONTAINER = -2; static constexpr unsigned DEVICE_CONTAINER = -2;
struct db_visitor;
class SongFilter; class SongFilter;
class Error; class Error;
class Database; class Database;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include <stddef.h>
#include <string.h> #include <string.h>
#define DIRECTORY_DIR "directory: " #define DIRECTORY_DIR "directory: "
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
#include "PrefixedLightSong.hxx" #include "PrefixedLightSong.hxx"
#include "db/Selection.hxx" #include "db/Selection.hxx"
#include "db/LightDirectory.hxx" #include "db/LightDirectory.hxx"
#include "db/LightSong.hxx"
#include "db/Interface.hxx" #include "db/Interface.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "util/Error.hxx"
#include <string> #include <string>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "db/LightDirectory.hxx" #include "db/LightDirectory.hxx"
#include "Directory.hxx" #include "Directory.hxx"
#include "Song.hxx" #include "Song.hxx"
#include "SongFilter.hxx"
#include "DatabaseSave.hxx" #include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx" #include "db/DatabaseLock.hxx"
#include "db/DatabaseError.hxx" #include "db/DatabaseError.hxx"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
inline Song::Song(const char *_uri, size_t uri_length, Directory &_parent) inline Song::Song(const char *_uri, size_t uri_length, Directory &_parent)
:parent(&_parent), mtime(0), :parent(&_parent), mtime(0),
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <string> #include <string>
#include <assert.h>
#include <time.h> #include <time.h>
struct LightSong; struct LightSong;
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "Song.hxx" #include "Song.hxx"
struct list_head;
void void
song_list_sort(SongList &songs); song_list_sort(SongList &songs);
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "lib/upnp/ContentDirectoryService.hxx" #include "lib/upnp/ContentDirectoryService.hxx"
#include "lib/upnp/Domain.hxx"
#include "lib/upnp/ixmlwrap.hxx" #include "lib/upnp/ixmlwrap.hxx"
#include "lib/upnp/UniqueIxml.hxx" #include "lib/upnp/UniqueIxml.hxx"
#include "lib/upnp/Action.hxx" #include "lib/upnp/Action.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "UpnpDatabasePlugin.hxx" #include "UpnpDatabasePlugin.hxx"
#include "Directory.hxx" #include "Directory.hxx"
#include "Tags.hxx" #include "Tags.hxx"
#include "lib/upnp/Domain.hxx"
#include "lib/upnp/ClientInit.hxx" #include "lib/upnp/ClientInit.hxx"
#include "lib/upnp/Discovery.hxx" #include "lib/upnp/Discovery.hxx"
#include "lib/upnp/ContentDirectoryService.hxx" #include "lib/upnp/ContentDirectoryService.hxx"
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <string> #include <string>
#include <sys/stat.h>
#include <string.h> #include <string.h>
static Directory * static Directory *
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "tag/TagBuilder.hxx" #include "tag/TagBuilder.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <sys/stat.h>
Directory * Directory *
UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name, UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name,
const StorageFileInfo &info) const StorageFileInfo &info)
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "db/plugins/simple/Song.hxx" #include "db/plugins/simple/Song.hxx"
#include <assert.h> #include <assert.h>
#include <stddef.h>
void void
DatabaseEditor::DeleteSong(Directory &dir, Song *del) DatabaseEditor::DeleteSong(Directory &dir, Song *del)
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
struct Directory; struct Directory;
struct Song; struct Song;
class UpdateRemoveService;
class DatabaseEditor final { class DatabaseEditor final {
UpdateRemoveService remove; UpdateRemoveService remove;
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <errno.h>
bool bool
ExcludeList::LoadFile(Path path_fs) ExcludeList::LoadFile(Path path_fs)
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <algorithm>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <assert.h> #include <assert.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <dirent.h> #include <dirent.h>
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
#include "Idle.hxx" #include "Idle.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
#include "thread/Id.hxx"
#include "thread/Thread.hxx" #include "thread/Thread.hxx"
#include "thread/Util.hxx" #include "thread/Util.hxx"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" /* must be first for large file support */ #include "config.h" /* must be first for large file support */
#include "UpdateIO.hxx" #include "UpdateIO.hxx"
#include "UpdateDomain.hxx"
#include "db/plugins/simple/Directory.hxx" #include "db/plugins/simple/Directory.hxx"
#include "storage/FileInfo.hxx" #include "storage/FileInfo.hxx"
#include "storage/StorageInterface.hxx" #include "storage/StorageInterface.hxx"
...@@ -30,7 +29,6 @@ ...@@ -30,7 +29,6 @@
#include "Log.hxx" #include "Log.hxx"
#include <errno.h> #include <errno.h>
#include <unistd.h>
bool bool
GetInfo(Storage &storage, const char *uri_utf8, StorageFileInfo &info) GetInfo(Storage &storage, const char *uri_utf8, StorageFileInfo &info)
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include "Log.hxx" #include "Log.hxx"
#include <assert.h> #include <assert.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
#include "Editor.hxx" #include "Editor.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <sys/stat.h>
struct stat;
struct StorageFileInfo; struct StorageFileInfo;
struct Directory; struct Directory;
struct ArchivePlugin; struct ArchivePlugin;
...@@ -141,7 +138,7 @@ private: ...@@ -141,7 +138,7 @@ private:
/** /**
* Create the specified directory object if it does not exist * Create the specified directory object if it does not exist
* already or if the #stat object indicates that it has been * already or if the #StorageFileInfo object indicates that it has been
* modified since the last update. Returns nullptr when it * modified since the last update. Returns nullptr when it
* exists already and is unmodified. * exists already and is unmodified.
* *
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include "DecoderBuffer.hxx" #include "DecoderBuffer.hxx"
#include "DecoderAPI.hxx" #include "DecoderAPI.hxx"
#include <assert.h>
bool bool
DecoderBuffer::Fill() DecoderBuffer::Fill()
{ {
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "Chrono.hxx" #include "Chrono.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include <utility>
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "CheckAudioFormat.hxx" #include "CheckAudioFormat.hxx"
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "fs/Path.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "tag/TagId3.hxx" #include "tag/TagId3.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Alloc.hxx"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "input/Offset.hxx" #include "input/Offset.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
struct Decoder; struct Decoder;
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <unistd.h>
static const unsigned adts_sample_rates[] = static const unsigned adts_sample_rates[] =
{ 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050,
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include "CheckAudioFormat.hxx" #include "CheckAudioFormat.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
#include "LogV.hxx" #include "LogV.hxx"
extern "C" { extern "C" {
...@@ -48,7 +47,6 @@ extern "C" { ...@@ -48,7 +47,6 @@ extern "C" {
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include <libavformat/avio.h> #include <libavformat/avio.h>
#include <libavutil/avutil.h> #include <libavutil/avutil.h>
#include <libavutil/log.h>
#if LIBAVUTIL_VERSION_MAJOR >= 53 #if LIBAVUTIL_VERSION_MAJOR >= 53
#include <libavutil/frame.h> #include <libavutil/frame.h>
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "tag/ReplayGain.hxx" #include "tag/ReplayGain.hxx"
#include "tag/MixRamp.hxx" #include "tag/MixRamp.hxx"
#include "ReplayGainInfo.hxx" #include "ReplayGainInfo.hxx"
#include "util/ASCII.hxx"
#include "util/DivideString.hxx" #include "util/DivideString.hxx"
bool bool
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include <FLAC/metadata.h> #include <FLAC/metadata.h>
#include <assert.h>
struct TagHandler; struct TagHandler;
class MixRampInfo; class MixRampInfo;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "util/Alloc.hxx"
#include "util/FormatString.hxx" #include "util/FormatString.hxx"
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "tag/MixRamp.hxx" #include "tag/MixRamp.hxx"
#include "CheckAudioFormat.hxx" #include "CheckAudioFormat.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/ASCII.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <ogg/ogg.h> #include <ogg/ogg.h>
#include <string.h> #include <string.h>
#include <stdio.h>
static constexpr opus_int32 opus_sample_rate = 48000; static constexpr opus_int32 opus_sample_rate = 48000;
......
...@@ -26,12 +26,8 @@ ...@@ -26,12 +26,8 @@
#include "tag/VorbisComment.hxx" #include "tag/VorbisComment.hxx"
#include "tag/ReplayGain.hxx" #include "tag/ReplayGain.hxx"
#include "ReplayGainInfo.hxx" #include "ReplayGainInfo.hxx"
#include "util/ASCII.hxx"
#include "util/DivideString.hxx" #include "util/DivideString.hxx"
#include <stddef.h>
#include <stdlib.h>
bool bool
vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments) vorbis_comments_to_replay_gain(ReplayGainInfo &rgi, char **comments)
{ {
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/ConfigError.hxx" #include "config/ConfigError.hxx"
#include "util/Manual.hxx" #include "util/Manual.hxx"
#include "util/NumberParser.hxx"
#include "util/DynamicFifoBuffer.hxx" #include "util/DynamicFifoBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "OggStream.hxx" #include "OggStream.hxx"
#include "OggSerial.hxx" #include "OggSerial.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "tag/Tag.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/ConfigError.hxx" #include "config/ConfigError.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
......
...@@ -25,14 +25,8 @@ ...@@ -25,14 +25,8 @@
#include "Compiler.h" #include "Compiler.h"
#include <assert.h> #include <assert.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#ifndef WIN32
#include <sys/types.h>
#include <sys/socket.h>
#endif
FullyBufferedSocket::ssize_t FullyBufferedSocket::ssize_t
FullyBufferedSocket::DirectWrite(const void *data, size_t length) FullyBufferedSocket::DirectWrite(const void *data, size_t length)
{ {
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
class TimeoutMonitor; class TimeoutMonitor;
class IdleMonitor; class IdleMonitor;
class DeferredMonitor; class DeferredMonitor;
class SocketMonitor;
#include <assert.h> #include <assert.h>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "system/fd_util.h" #include "system/fd_util.h"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "util/Alloc.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
...@@ -38,12 +37,9 @@ ...@@ -38,12 +37,9 @@
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h>
#include <assert.h> #include <assert.h>
#ifdef WIN32 #ifdef WIN32
...@@ -52,7 +48,6 @@ ...@@ -52,7 +48,6 @@
#else #else
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h> #include <netdb.h>
#endif #endif
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include <list> #include <list>
#include <stddef.h>
class SocketAddress; class SocketAddress;
class AllocatedSocketAddress; class AllocatedSocketAddress;
class EventLoop; class EventLoop;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#ifndef WIN32 #ifndef WIN32
#include "WakeFD.hxx"
#include "SocketMonitor.hxx" #include "SocketMonitor.hxx"
#include "util/Manual.hxx" #include "util/Manual.hxx"
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "SocketMonitor.hxx" #include "SocketMonitor.hxx"
#include "Loop.hxx" #include "Loop.hxx"
#include "system/fd_util.h" #include "system/fd_util.h"
#include "Compiler.h"
#include <assert.h> #include <assert.h>
......
...@@ -27,14 +27,12 @@ ...@@ -27,14 +27,12 @@
#include "ReplayGainConfig.hxx" #include "ReplayGainConfig.hxx"
#include "mixer/MixerControl.hxx" #include "mixer/MixerControl.hxx"
#include "pcm/Volume.hxx" #include "pcm/Volume.hxx"
#include "pcm/PcmBuffer.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <assert.h> #include <assert.h>
#include <string.h>
static constexpr Domain replay_gain_domain("replay_gain"); static constexpr Domain replay_gain_domain("replay_gain");
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
#include <algorithm> #include <algorithm>
#include <assert.h>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -25,10 +25,6 @@ ...@@ -25,10 +25,6 @@
#include "pcm/Volume.hxx" #include "pcm/Volume.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Error.hxx"
#include <assert.h>
#include <string.h>
class VolumeFilter final : public Filter { class VolumeFilter final : public Filter {
PcmVolume pv; PcmVolume pv;
......
...@@ -20,10 +20,8 @@ ...@@ -20,10 +20,8 @@
#include "config.h" #include "config.h"
#include "Charset.hxx" #include "Charset.hxx"
#include "Domain.hxx" #include "Domain.hxx"
#include "Limits.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "lib/icu/Converter.hxx" #include "lib/icu/Converter.hxx"
#include "util/Error.hxx"
#include "util/AllocatedString.hxx" #include "util/AllocatedString.hxx"
#ifdef WIN32 #ifdef WIN32
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "system/Error.hxx" #include "system/Error.hxx"
#include <errno.h> #include <errno.h>
#include <sys/stat.h>
void void
CheckDirectoryReadable(Path path_fs) CheckDirectoryReadable(Path path_fs)
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "config.h" #include "config.h"
#include "Path.hxx" #include "Path.hxx"
#include "Charset.hxx" #include "Charset.hxx"
#include "util/UriUtil.hxx"
#include "util/StringUtil.hxx"
std::string std::string
Path::ToUTF8() const Path::ToUTF8() const
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <shlobj.h> #include <shlobj.h>
#else #else
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <pwd.h> #include <pwd.h>
#endif #endif
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "PeekReader.hxx" #include "PeekReader.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <stdint.h>
class GunzipReader; class GunzipReader;
/** /**
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "system/FileDescriptor.hxx" #include "system/FileDescriptor.hxx"
#endif #endif
#include <assert.h>
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>
#endif #endif
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "GunzipReader.hxx" #include "GunzipReader.hxx"
#include "lib/zlib/Domain.hxx"
GunzipReader::GunzipReader(Reader &_next) throw(ZlibError) GunzipReader::GunzipReader(Reader &_next) throw(ZlibError)
:next(_next), eof(false) :next(_next), eof(false)
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "GzipOutputStream.hxx" #include "GzipOutputStream.hxx"
#include "lib/zlib/Domain.hxx"
#include "lib/zlib/Error.hxx" #include "lib/zlib/Error.hxx"
GzipOutputStream::GzipOutputStream(OutputStream &_next) throw(ZlibError) GzipOutputStream::GzipOutputStream(OutputStream &_next) throw(ZlibError)
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "lib/zlib/Error.hxx" #include "lib/zlib/Error.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <assert.h>
#include <zlib.h> #include <zlib.h>
/** /**
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <stdint.h> #include <stdint.h>
class AutoGunzipReader;
/** /**
* A filter that allows the caller to peek the first few bytes without * A filter that allows the caller to peek the first few bytes without
* consuming them. The first call must be Peek(), and the following * consuming them. The first call must be Peek(), and the following
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "AsyncInputStream.hxx" #include "AsyncInputStream.hxx"
#include "Domain.hxx" #include "Domain.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "event/Call.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "IOThread.hxx" #include "IOThread.hxx"
#include "util/HugeAllocator.hxx" #include "util/HugeAllocator.hxx"
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "Log.hxx" #include "Log.hxx"
#include <assert.h> #include <assert.h>
#include <string.h>
bool bool
input_stream_global_init(Error &error) input_stream_global_init(Error &error)
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <string> #include <string>
#include <assert.h> #include <assert.h>
#include <stdint.h>
class Cond; class Cond;
class Error; class Error;
......
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
#include "Domain.hxx" #include "Domain.hxx"
#include "plugins/RewindInputPlugin.hxx" #include "plugins/RewindInputPlugin.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "fs/Path.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
InputStreamPtr InputStreamPtr
InputStream::Open(const char *url, InputStream::Open(const char *url,
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
#include "config.h" #include "config.h"
#include "ProxyInputStream.hxx" #include "ProxyInputStream.hxx"
#include "tag/Tag.hxx"
#include <assert.h>
ProxyInputStream::ProxyInputStream(InputStream *_input) ProxyInputStream::ProxyInputStream(InputStream *_input)
:InputStream(_input->GetURI(), _input->mutex, _input->cond), :InputStream(_input->GetURI(), _input->mutex, _input->cond),
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "input/Ptr.hxx" #include "input/Ptr.hxx"
#include "util/StaticFifoBuffer.hxx" #include "util/StaticFifoBuffer.hxx"
class InputStream;
class TextInputStream { class TextInputStream {
InputStreamPtr is; InputStreamPtr is;
StaticFifoBuffer<char, 4096> buffer; StaticFifoBuffer<char, 4096> buffer;
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "Log.hxx" #include "Log.hxx"
#include "event/MultiSocketMonitor.hxx" #include "event/MultiSocketMonitor.hxx"
#include "event/DeferredMonitor.hxx" #include "event/DeferredMonitor.hxx"
#include "event/Call.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "IOThread.hxx" #include "IOThread.hxx"
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
#include "archive/ArchivePlugin.hxx" #include "archive/ArchivePlugin.hxx"
#include "archive/ArchiveFile.hxx" #include "archive/ArchiveFile.hxx"
#include "../InputPlugin.hxx" #include "../InputPlugin.hxx"
#include "fs/Traits.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/Alloc.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "../InputPlugin.hxx" #include "../InputPlugin.hxx"
#include "config/ConfigGlobal.hxx" #include "config/ConfigGlobal.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx" #include "tag/TagBuilder.hxx"
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "event/TimeoutMonitor.hxx" #include "event/TimeoutMonitor.hxx"
...@@ -33,7 +32,6 @@ ...@@ -33,7 +32,6 @@
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include "util/NumberParser.hxx" #include "util/NumberParser.hxx"
#include "util/CircularBuffer.hxx"
#include "util/HugeAllocator.hxx" #include "util/HugeAllocator.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h>
static constexpr Domain file_domain("file"); static constexpr Domain file_domain("file");
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "util/Error.hxx" #include "util/Error.hxx"
#include <string.h> #include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
/** /**
* 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
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "util/WritableBuffer.hxx" #include "util/WritableBuffer.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
#include <unicode/ucol.h> #include <unicode/ucol.h>
#include <unicode/ustring.h> #include <unicode/ustring.h>
...@@ -44,7 +43,6 @@ ...@@ -44,7 +43,6 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <strings.h>
#ifdef HAVE_ICU #ifdef HAVE_ICU
static UCollator *collator; static UCollator *collator;
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "check.h" #include "check.h"
#include "Compiler.h" #include "Compiler.h"
#include <string>
class Error; class Error;
template<typename T> class AllocatedString; template<typename T> class AllocatedString;
......
...@@ -20,15 +20,12 @@ ...@@ -20,15 +20,12 @@
#ifndef MPD_NFS_CONNECTION_HXX #ifndef MPD_NFS_CONNECTION_HXX
#define MPD_NFS_CONNECTION_HXX #define MPD_NFS_CONNECTION_HXX
#include "Lease.hxx"
#include "Cancellable.hxx" #include "Cancellable.hxx"
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "event/TimeoutMonitor.hxx" #include "event/TimeoutMonitor.hxx"
#include "event/DeferredMonitor.hxx" #include "event/DeferredMonitor.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include <boost/intrusive/list.hpp>
#include <string> #include <string>
#include <list> #include <list>
#include <forward_list> #include <forward_list>
...@@ -37,6 +34,7 @@ struct nfs_context; ...@@ -37,6 +34,7 @@ struct nfs_context;
struct nfsdir; struct nfsdir;
struct nfsdirent; struct nfsdirent;
class NfsCallback; class NfsCallback;
class NfsLease;
/** /**
* An asynchronous connection to a NFS server. * An asynchronous connection to a NFS server.
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h>
NfsFileReader::NfsFileReader() NfsFileReader::NfsFileReader()
:DeferredMonitor(io_thread_get()), state(State::INITIAL) :DeferredMonitor(io_thread_get()), state(State::INITIAL)
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <sys/stat.h>
struct nfsfh; struct nfsfh;
class NfsConnection; class NfsConnection;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "ClientInit.hxx" #include "ClientInit.hxx"
#include "Init.hxx" #include "Init.hxx"
#include "Callback.hxx" #include "Callback.hxx"
#include "Domain.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "ContentDirectoryService.hxx" #include "ContentDirectoryService.hxx"
#include "UniqueIxml.hxx" #include "UniqueIxml.hxx"
#include "Domain.hxx"
#include "Device.hxx" #include "Device.hxx"
#include "ixmlwrap.hxx" #include "ixmlwrap.hxx"
#include "Util.hxx" #include "Util.hxx"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <string> #include <string>
#include <list> #include <list>
class Error;
class UPnPDevice; class UPnPDevice;
struct UPnPService; struct UPnPService;
class UPnPDirContent; class UPnPDirContent;
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "Util.hxx" #include "Util.hxx"
#include "lib/expat/ExpatParser.hxx" #include "lib/expat/ExpatParser.hxx"
#include <stdlib.h>
#include <string.h> #include <string.h>
UPnPDevice::~UPnPDevice() UPnPDevice::~UPnPDevice()
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "Discovery.hxx" #include "Discovery.hxx"
#include "Domain.hxx"
#include "ContentDirectoryService.hxx" #include "ContentDirectoryService.hxx"
#include "system/Clock.hxx" #include "system/Clock.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "Device.hxx" #include "Device.hxx"
#include "WorkQueue.hxx" #include "WorkQueue.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/Error.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <upnp/upnp.h> #include <upnp/upnp.h>
......
/*
* Copyright 2003-2016 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "Domain.hxx"
#include "util/Domain.hxx"
const Domain upnp_domain("upnp");
/*
* Copyright 2003-2016 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_UPNP_DOMAIN_HXX
#define MPD_UPNP_DOMAIN_HXX
class Domain;
extern const Domain upnp_domain;
#endif
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "Init.hxx" #include "Init.hxx"
#include "Domain.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include "Util.hxx" #include "Util.hxx"
#include <upnp/ixml.h>
#include <assert.h> #include <assert.h>
/** Get rid of white space at both ends */ /** Get rid of white space at both ends */
......
/*
* Copyright 2003-2016 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Domain.hxx"
#include "util/Domain.hxx"
const Domain zlib_domain("zlib");
/*
* Copyright 2003-2016 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_ZLIB_DOMAIN_HXX
#define MPD_ZLIB_DOMAIN_HXX
class Domain;
extern const Domain zlib_domain;
#endif
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#ifndef MPD_ZLIB_ERROR_HXX #ifndef MPD_ZLIB_ERROR_HXX
#define MPD_ZLIB_ERROR_HXX #define MPD_ZLIB_ERROR_HXX
#include <stdexcept> #include <exception>
class ZlibError final : public std::exception { class ZlibError final : public std::exception {
int code; int code;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "output/OutputAPI.hxx" #include "output/OutputAPI.hxx"
#include "event/MultiSocketMonitor.hxx" #include "event/MultiSocketMonitor.hxx"
#include "event/DeferredMonitor.hxx" #include "event/DeferredMonitor.hxx"
#include "event/Loop.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/ReusableArray.hxx" #include "util/ReusableArray.hxx"
#include "util/Clamp.hxx" #include "util/Clamp.hxx"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "mixer/Listener.hxx" #include "mixer/Listener.hxx"
#include "output/plugins/PulseOutputPlugin.hxx" #include "output/plugins/PulseOutputPlugin.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "Log.hxx"
#include <pulse/context.h> #include <pulse/context.h>
#include <pulse/introspect.h> #include <pulse/introspect.h>
......
...@@ -30,14 +30,10 @@ ...@@ -30,14 +30,10 @@
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "thread/Thread.hxx" #include "thread/Thread.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
#include "util/Macros.hxx"
#include "util/Domain.hxx"
#include "util/Error.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <libsmbclient.h> #include <libsmbclient.h>
#include <list>
#include <algorithm> #include <algorithm>
class SmbclientNeighborExplorer final : public NeighborExplorer { class SmbclientNeighborExplorer final : public NeighborExplorer {
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "UpnpNeighborPlugin.hxx" #include "UpnpNeighborPlugin.hxx"
#include "lib/upnp/Domain.hxx"
#include "lib/upnp/ClientInit.hxx" #include "lib/upnp/ClientInit.hxx"
#include "lib/upnp/Discovery.hxx" #include "lib/upnp/Discovery.hxx"
#include "lib/upnp/ContentDirectoryService.hxx" #include "lib/upnp/ContentDirectoryService.hxx"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "config.h" #include "config.h"
#include "AllocatedSocketAddress.hxx" #include "AllocatedSocketAddress.hxx"
#include <assert.h>
#include <string.h> #include <string.h>
#ifdef HAVE_UN #ifdef HAVE_UN
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "config.h" #include "config.h"
#include "Resolver.hxx" #include "Resolver.hxx"
#include "SocketAddress.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
......
...@@ -23,12 +23,6 @@ ...@@ -23,12 +23,6 @@
#include "SocketError.hxx" #include "SocketError.hxx"
#include "system/fd_util.h" #include "system/fd_util.h"
#include <unistd.h>
#ifdef HAVE_IPV6
#include <string.h>
#endif
int int
socket_bind_listen(int domain, int type, int protocol, socket_bind_listen(int domain, int type, int protocol,
SocketAddress address, SocketAddress address,
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <assert.h> #include <assert.h>
struct AudioFormat;
class MusicBuffer; class MusicBuffer;
class MusicPipe; class MusicPipe;
class EventLoop; class EventLoop;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#define AUDIO_DEVICE_STATE "audio_device_state:" #define AUDIO_DEVICE_STATE "audio_device_state:"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "Registry.hxx" #include "Registry.hxx"
#include "OutputAPI.hxx" #include "OutputPlugin.hxx"
#include "plugins/AlsaOutputPlugin.hxx" #include "plugins/AlsaOutputPlugin.hxx"
#include "plugins/AoOutputPlugin.hxx" #include "plugins/AoOutputPlugin.hxx"
#include "plugins/FifoOutputPlugin.hxx" #include "plugins/FifoOutputPlugin.hxx"
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <unistd.h> /* for usleep() */ #include <unistd.h> /* for usleep() */
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
static constexpr unsigned MAX_PORTS = 16; static constexpr unsigned MAX_PORTS = 16;
......
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
#include "event/BufferedSocket.hxx" #include "event/BufferedSocket.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <boost/intrusive/list.hpp> #include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
#include <queue> #include <queue>
#include <list> #include <list>
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include "util/Cast.hxx" #include "util/Cast.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <boost/intrusive/list.hpp>
#include <queue> #include <queue>
#include <list> #include <list>
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
#include <assert.h> #include <assert.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_PCM_CHANNELS_HXX #define MPD_PCM_CHANNELS_HXX
#include <stdint.h> #include <stdint.h>
#include <stddef.h>
class PcmBuffer; class PcmBuffer;
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
......
...@@ -22,13 +22,10 @@ ...@@ -22,13 +22,10 @@
#include "Domain.hxx" #include "Domain.hxx"
#include "ConfiguredResampler.hxx" #include "ConfiguredResampler.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include <assert.h> #include <assert.h>
#include <math.h>
bool bool
pcm_convert_global_init(Error &error) pcm_convert_global_init(Error &error)
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define PCM_CONVERT_HXX #define PCM_CONVERT_HXX
#include "check.h" #include "check.h"
#include "PcmBuffer.hxx"
#include "FormatConverter.hxx" #include "FormatConverter.hxx"
#include "ChannelsConverter.hxx" #include "ChannelsConverter.hxx"
#include "GlueResampler.hxx" #include "GlueResampler.hxx"
...@@ -31,11 +30,8 @@ ...@@ -31,11 +30,8 @@
#include "PcmDsd.hxx" #include "PcmDsd.hxx"
#endif #endif
#include <stddef.h>
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
class Error; class Error;
class Domain;
/** /**
* This object is statically allocated (within another struct), and * This object is statically allocated (within another struct), and
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "check.h" #include "check.h"
#include <stdint.h> #include <stdint.h>
#include <stddef.h>
class PcmBuffer; class PcmBuffer;
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "PcmDop.hxx" #include "PcmDop.hxx"
#endif #endif
#include <iterator>
void void
PcmExport::Open(SampleFormat sample_format, unsigned _channels, PcmExport::Open(SampleFormat sample_format, unsigned _channels,
Params params) Params params)
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "PcmBuffer.hxx" #include "PcmBuffer.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
struct AudioFormat;
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
/** /**
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include <stdint.h> #include <stdint.h>
#include <stddef.h>
template<typename T> struct ConstBuffer; template<typename T> struct ConstBuffer;
class PcmBuffer; class PcmBuffer;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "SoxrResampler.hxx" #include "SoxrResampler.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "util/ASCII.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "Volume.hxx" #include "Volume.hxx"
#include "Domain.hxx" #include "Domain.hxx"
#include "PcmUtils.hxx"
#include "Traits.hxx" #include "Traits.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
#include "PcmBuffer.hxx" #include "PcmBuffer.hxx"
#include "PcmDither.hxx" #include "PcmDither.hxx"
#include <stdint.h>
#include <stddef.h>
#ifndef NDEBUG #ifndef NDEBUG
#include <assert.h> #include <assert.h>
#endif #endif
...@@ -45,8 +42,6 @@ static constexpr unsigned PCM_VOLUME_BITS = 10; ...@@ -45,8 +42,6 @@ static constexpr unsigned PCM_VOLUME_BITS = 10;
static constexpr unsigned PCM_VOLUME_1 = 1024; static constexpr unsigned PCM_VOLUME_1 = 1024;
static constexpr int PCM_VOLUME_1S = PCM_VOLUME_1; static constexpr int PCM_VOLUME_1S = PCM_VOLUME_1;
struct AudioFormat;
/** /**
* Converts a float value (0.0 = silence, 1.0 = 100% volume) to an * Converts a float value (0.0 = silence, 1.0 = 100% volume) to an
* integer volume value (1000 = 100%). * integer volume value (1000 = 100%).
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "PlaylistMapper.hxx" #include "PlaylistMapper.hxx"
#include "PlaylistFile.hxx" #include "PlaylistFile.hxx"
#include "PlaylistStream.hxx" #include "PlaylistStream.hxx"
#include "PlaylistRegistry.hxx"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "storage/StorageInterface.hxx" #include "storage/StorageInterface.hxx"
......
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
#include "PlaylistQueue.hxx" #include "PlaylistQueue.hxx"
#include "PlaylistAny.hxx" #include "PlaylistAny.hxx"
#include "PlaylistSong.hxx" #include "PlaylistSong.hxx"
#include "PlaylistError.hxx"
#include "queue/Playlist.hxx" #include "queue/Playlist.hxx"
#include "SongEnumerator.hxx" #include "SongEnumerator.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "util/Error.hxx"
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
#include "SongLoader.hxx" #include "SongLoader.hxx"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef MPD_PLAYLIST_QUEUE_HXX #ifndef MPD_PLAYLIST_QUEUE_HXX
#define MPD_PLAYLIST_QUEUE_HXX #define MPD_PLAYLIST_QUEUE_HXX
#include "PlaylistError.hxx"
class Error; class Error;
class SongLoader; class SongLoader;
class SongEnumerator; class SongEnumerator;
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "util/Macros.hxx" #include "util/Macros.hxx"
#include "config/ConfigGlobal.hxx" #include "config/ConfigGlobal.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "Log.hxx"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "util/Error.hxx" #include "util/Error.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include <assert.h>
#include <string.h> #include <string.h>
static void static void
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "SongEnumerator.hxx" #include "SongEnumerator.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "SongLoader.hxx"
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
#include <string> #include <string>
#include <memory> #include <memory>
class DetachedSong;
struct Tag;
class CueParser { class CueParser {
enum { enum {
/** /**
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "../cue/CueParser.hxx" #include "../cue/CueParser.hxx"
#include "input/TextInputStream.hxx" #include "input/TextInputStream.hxx"
#include <string>
class CuePlaylist final : public SongEnumerator { class CuePlaylist final : public SongEnumerator {
TextInputStream tis; TextInputStream tis;
CueParser parser; CueParser parser;
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include <FLAC/metadata.h> #include <FLAC/metadata.h>
#include <string.h>
class FlacPlaylist final : public SongEnumerator { class FlacPlaylist final : public SongEnumerator {
const char *const uri; const char *const uri;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include "util/DivideString.hxx" #include "util/DivideString.hxx"
#include "util/Error.hxx"
#include <string> #include <string>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <stdint.h> #include <stdint.h>
class Response;
class SongTime; class SongTime;
class SignedSongTime; class SignedSongTime;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define MPD_PLAYLIST_HXX #define MPD_PLAYLIST_HXX
#include "queue/Queue.hxx" #include "queue/Queue.hxx"
#include "PlaylistError.hxx"
enum TagType : uint8_t; enum TagType : uint8_t;
struct PlayerControl; struct PlayerControl;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "Playlist.hxx" #include "Playlist.hxx"
#include "PlaylistError.hxx" #include "PlaylistError.hxx"
#include "player/Control.hxx" #include "player/Control.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "SongLoader.hxx" #include "SongLoader.hxx"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "db/Interface.hxx" #include "db/Interface.hxx"
#include "db/LightSong.hxx" #include "db/LightSong.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "tag/Tag.hxx"
#include "Idle.hxx" #include "Idle.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -23,13 +23,11 @@ ...@@ -23,13 +23,11 @@
#include "PlaylistError.hxx" #include "PlaylistError.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "SongSave.hxx" #include "SongSave.hxx"
#include "SongLoader.hxx"
#include "playlist/PlaylistSong.hxx" #include "playlist/PlaylistSong.hxx"
#include "fs/io/TextFile.hxx" #include "fs/io/TextFile.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "fs/Traits.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Alloc.hxx" #include "util/Alloc.hxx"
#include <assert.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <map> #include <map>
class Error; class Error;
class Storage;
/** /**
* A #Storage implementation that combines multiple other #Storage * A #Storage implementation that combines multiple other #Storage
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <limits> #include <limits>
#include <stdint.h> #include <stdint.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
struct aiff_header { struct aiff_header {
......
...@@ -24,10 +24,7 @@ ...@@ -24,10 +24,7 @@
#include <functional> #include <functional>
#include <stddef.h>
struct StringView; struct StringView;
class Path;
class InputStream; class InputStream;
typedef std::function<bool(unsigned long flags, const char *key, typedef std::function<bool(unsigned long flags, const char *key,
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "check.h" #include "check.h"
#include "Id3Unique.hxx" #include "Id3Unique.hxx"
class Error;
class InputStream; class InputStream;
/** /**
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "TagType.h" #include "TagType.h"
#include "Compiler.h" #include "Compiler.h"
#include <stdint.h>
extern tag_mask_t global_tag_mask; extern tag_mask_t global_tag_mask;
gcc_const gcc_const
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "Tag.hxx" #include "Tag.hxx"
#include "TagPool.hxx" #include "TagPool.hxx"
#include "TagString.hxx"
#include "TagBuilder.hxx" #include "TagBuilder.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
......
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
#include "Compiler.h" #include "Compiler.h"
#include <algorithm> #include <algorithm>
#include <iterator>
#include <stddef.h>
/** /**
* The meta information about a song file. It is a MPD specific * The meta information about a song file. It is a MPD specific
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <array> #include <array>
#include <assert.h> #include <assert.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
TagBuilder::TagBuilder(const Tag &other) TagBuilder::TagBuilder(const Tag &other)
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <vector> #include <vector>
#include <stddef.h>
struct StringView; struct StringView;
struct TagItem; struct TagItem;
struct Tag; struct Tag;
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include <algorithm>
#include <stdlib.h> #include <stdlib.h>
void void
......
...@@ -25,16 +25,14 @@ ...@@ -25,16 +25,14 @@
#include "TagBuilder.hxx" #include "TagBuilder.hxx"
#include "util/Alloc.hxx" #include "util/Alloc.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include "util/Error.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "config/ConfigGlobal.hxx"
#include "fs/Path.hxx"
#include <id3tag.h> #include <id3tag.h>
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
# ifndef ID3_FRAME_COMPOSER # ifndef ID3_FRAME_COMPOSER
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "util/UTF8.hxx" #include "util/UTF8.hxx"
#include <assert.h> #include <assert.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
gcc_pure gcc_pure
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "check.h" #include "check.h"
#include "Compiler.h" #include "Compiler.h"
#include <stddef.h>
struct StringView; struct StringView;
template<typename T> struct WritableBuffer; template<typename T> struct WritableBuffer;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx" #include "fs/FileSystem.hxx"
#include "PidFile.hxx" #include "PidFile.hxx"
#include "Log.hxx"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_PEAK_BUFFER_HXX #ifndef MPD_PEAK_BUFFER_HXX
#define MPD_PEAK_BUFFER_HXX #define MPD_PEAK_BUFFER_HXX
#include "WritableBuffer.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <stddef.h> #include <stddef.h>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "StringUtil.hxx" #include "StringUtil.hxx"
#include "StringAPI.hxx"
#include "CharUtil.hxx" #include "CharUtil.hxx"
#include "ASCII.hxx" #include "ASCII.hxx"
......
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