summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-24 16:18:50 +0100
committerMax Kellermann <max@duempel.org>2014-01-24 16:38:44 +0100
commit9d34fc394ce30a28ec0e43f2ad7172b8de8b3be6 (patch)
tree4b58951bc81b17f16140c7f743a163bd837827bf /src
parent973c9872f930d73a8ddc98e4802b242aea9f0dba (diff)
Database*: move to db/
Diffstat (limited to 'src')
-rw-r--r--src/CommandLine.cxx6
-rw-r--r--src/DetachedSong.cxx2
-rw-r--r--src/Instance.hxx2
-rw-r--r--src/Main.cxx8
-rw-r--r--src/Mapper.cxx6
-rw-r--r--src/PlaylistEdit.cxx2
-rw-r--r--src/PlaylistFile.cxx2
-rw-r--r--src/PlaylistPrint.cxx4
-rw-r--r--src/PlaylistUpdate.cxx6
-rw-r--r--src/PlaylistVector.cxx2
-rw-r--r--src/SongFilter.cxx4
-rw-r--r--src/SongPrint.cxx2
-rw-r--r--src/SongSave.cxx2
-rw-r--r--src/SongUpdate.cxx4
-rw-r--r--src/Stats.cxx8
-rw-r--r--src/command/CommandError.cxx2
-rw-r--r--src/command/DatabaseCommands.cxx8
-rw-r--r--src/command/OtherCommands.cxx4
-rw-r--r--src/command/PlayerCommands.cxx2
-rw-r--r--src/command/PlaylistCommands.cxx2
-rw-r--r--src/command/QueueCommands.cxx4
-rw-r--r--src/command/StickerCommands.cxx8
-rw-r--r--src/db/DatabaseError.cxx (renamed from src/DatabaseError.cxx)0
-rw-r--r--src/db/DatabaseError.hxx (renamed from src/DatabaseError.hxx)0
-rw-r--r--src/db/DatabaseGlue.cxx (renamed from src/DatabaseGlue.cxx)4
-rw-r--r--src/db/DatabaseGlue.hxx (renamed from src/DatabaseGlue.hxx)0
-rw-r--r--src/db/DatabaseListener.hxx (renamed from src/DatabaseListener.hxx)0
-rw-r--r--src/db/DatabaseLock.cxx (renamed from src/DatabaseLock.cxx)0
-rw-r--r--src/db/DatabaseLock.hxx (renamed from src/DatabaseLock.hxx)0
-rw-r--r--src/db/DatabasePlaylist.cxx (renamed from src/DatabasePlaylist.cxx)2
-rw-r--r--src/db/DatabasePlaylist.hxx (renamed from src/DatabasePlaylist.hxx)0
-rw-r--r--src/db/DatabasePlugin.hxx (renamed from src/DatabasePlugin.hxx)2
-rw-r--r--src/db/DatabasePrint.cxx (renamed from src/DatabasePrint.cxx)2
-rw-r--r--src/db/DatabasePrint.hxx (renamed from src/DatabasePrint.hxx)0
-rw-r--r--src/db/DatabaseQueue.cxx (renamed from src/DatabaseQueue.cxx)0
-rw-r--r--src/db/DatabaseQueue.hxx (renamed from src/DatabaseQueue.hxx)0
-rw-r--r--src/db/DatabaseSave.cxx (renamed from src/DatabaseSave.cxx)0
-rw-r--r--src/db/DatabaseSave.hxx (renamed from src/DatabaseSave.hxx)0
-rw-r--r--src/db/DatabaseSimple.hxx (renamed from src/DatabaseSimple.hxx)0
-rw-r--r--src/db/DatabaseSong.cxx (renamed from src/DatabaseSong.cxx)0
-rw-r--r--src/db/DatabaseSong.hxx (renamed from src/DatabaseSong.hxx)0
-rw-r--r--src/db/Directory.cxx (renamed from src/Directory.cxx)2
-rw-r--r--src/db/Directory.hxx (renamed from src/Directory.hxx)2
-rw-r--r--src/db/DirectorySave.cxx (renamed from src/DirectorySave.cxx)0
-rw-r--r--src/db/DirectorySave.hxx (renamed from src/DirectorySave.hxx)0
-rw-r--r--src/db/Helpers.cxx (renamed from src/DatabaseHelpers.cxx)2
-rw-r--r--src/db/Helpers.hxx (renamed from src/DatabaseHelpers.hxx)2
-rw-r--r--src/db/LightDirectory.hxx (renamed from src/LightDirectory.hxx)0
-rw-r--r--src/db/LightSong.cxx (renamed from src/LightSong.cxx)0
-rw-r--r--src/db/LightSong.hxx (renamed from src/LightSong.hxx)0
-rw-r--r--src/db/Registry.cxx (renamed from src/DatabaseRegistry.cxx)8
-rw-r--r--src/db/Registry.hxx (renamed from src/DatabaseRegistry.hxx)0
-rw-r--r--src/db/Selection.cxx (renamed from src/DatabaseSelection.cxx)2
-rw-r--r--src/db/Selection.hxx (renamed from src/DatabaseSelection.hxx)0
-rw-r--r--src/db/Song.cxx (renamed from src/Song.cxx)0
-rw-r--r--src/db/Song.hxx (renamed from src/Song.hxx)0
-rw-r--r--src/db/SongSort.cxx (renamed from src/SongSort.cxx)0
-rw-r--r--src/db/SongSort.hxx (renamed from src/SongSort.hxx)0
-rw-r--r--src/db/Visitor.hxx (renamed from src/DatabaseVisitor.hxx)0
-rw-r--r--src/db/plugins/LazyDatabase.cxx (renamed from src/db/LazyDatabase.cxx)0
-rw-r--r--src/db/plugins/LazyDatabase.hxx (renamed from src/db/LazyDatabase.hxx)2
-rw-r--r--src/db/plugins/ProxyDatabasePlugin.cxx (renamed from src/db/ProxyDatabasePlugin.cxx)12
-rw-r--r--src/db/plugins/ProxyDatabasePlugin.hxx (renamed from src/db/ProxyDatabasePlugin.hxx)0
-rw-r--r--src/db/plugins/SimpleDatabasePlugin.cxx (renamed from src/db/SimpleDatabasePlugin.cxx)16
-rw-r--r--src/db/plugins/SimpleDatabasePlugin.hxx (renamed from src/db/SimpleDatabasePlugin.hxx)4
-rw-r--r--src/db/plugins/UpnpDatabasePlugin.cxx (renamed from src/db/UpnpDatabasePlugin.cxx)10
-rw-r--r--src/db/plugins/UpnpDatabasePlugin.hxx (renamed from src/db/UpnpDatabasePlugin.hxx)0
-rw-r--r--src/db/plugins/upnp/Action.hxx (renamed from src/db/upnp/Action.hxx)0
-rw-r--r--src/db/plugins/upnp/ContentDirectoryService.cxx (renamed from src/db/upnp/ContentDirectoryService.cxx)0
-rw-r--r--src/db/plugins/upnp/ContentDirectoryService.hxx (renamed from src/db/upnp/ContentDirectoryService.hxx)0
-rw-r--r--src/db/plugins/upnp/Device.cxx (renamed from src/db/upnp/Device.cxx)0
-rw-r--r--src/db/plugins/upnp/Device.hxx (renamed from src/db/upnp/Device.hxx)0
-rw-r--r--src/db/plugins/upnp/Directory.cxx (renamed from src/db/upnp/Directory.cxx)0
-rw-r--r--src/db/plugins/upnp/Directory.hxx (renamed from src/db/upnp/Directory.hxx)0
-rw-r--r--src/db/plugins/upnp/Discovery.cxx (renamed from src/db/upnp/Discovery.cxx)0
-rw-r--r--src/db/plugins/upnp/Discovery.hxx (renamed from src/db/upnp/Discovery.hxx)0
-rw-r--r--src/db/plugins/upnp/Domain.cxx (renamed from src/db/upnp/Domain.cxx)0
-rw-r--r--src/db/plugins/upnp/Domain.hxx (renamed from src/db/upnp/Domain.hxx)0
-rw-r--r--src/db/plugins/upnp/Object.cxx (renamed from src/db/upnp/Object.cxx)0
-rw-r--r--src/db/plugins/upnp/Object.hxx (renamed from src/db/upnp/Object.hxx)0
-rw-r--r--src/db/plugins/upnp/Tags.cxx (renamed from src/db/upnp/Tags.cxx)0
-rw-r--r--src/db/plugins/upnp/Tags.hxx (renamed from src/db/upnp/Tags.hxx)0
-rw-r--r--src/db/plugins/upnp/Util.cxx (renamed from src/db/upnp/Util.cxx)0
-rw-r--r--src/db/plugins/upnp/Util.hxx (renamed from src/db/upnp/Util.hxx)0
-rw-r--r--src/db/plugins/upnp/WorkQueue.hxx (renamed from src/db/upnp/WorkQueue.hxx)0
-rw-r--r--src/db/plugins/upnp/ixmlwrap.cxx (renamed from src/db/upnp/ixmlwrap.cxx)0
-rw-r--r--src/db/plugins/upnp/ixmlwrap.hxx (renamed from src/db/upnp/ixmlwrap.hxx)0
-rw-r--r--src/db/plugins/upnp/upnpplib.cxx (renamed from src/db/upnp/upnpplib.cxx)0
-rw-r--r--src/db/plugins/upnp/upnpplib.hxx (renamed from src/db/upnp/upnpplib.hxx)0
-rw-r--r--src/db/update/InotifyDomain.cxx (renamed from src/update/InotifyDomain.cxx)0
-rw-r--r--src/db/update/InotifyDomain.hxx (renamed from src/update/InotifyDomain.hxx)0
-rw-r--r--src/db/update/InotifyQueue.cxx (renamed from src/update/InotifyQueue.cxx)0
-rw-r--r--src/db/update/InotifyQueue.hxx (renamed from src/update/InotifyQueue.hxx)0
-rw-r--r--src/db/update/InotifySource.cxx (renamed from src/update/InotifySource.cxx)0
-rw-r--r--src/db/update/InotifySource.hxx (renamed from src/update/InotifySource.hxx)0
-rw-r--r--src/db/update/InotifyUpdate.cxx (renamed from src/update/InotifyUpdate.cxx)0
-rw-r--r--src/db/update/InotifyUpdate.hxx (renamed from src/update/InotifyUpdate.hxx)0
-rw-r--r--src/db/update/UpdateArchive.cxx (renamed from src/update/UpdateArchive.cxx)6
-rw-r--r--src/db/update/UpdateArchive.hxx (renamed from src/update/UpdateArchive.hxx)0
-rw-r--r--src/db/update/UpdateContainer.cxx (renamed from src/update/UpdateContainer.cxx)6
-rw-r--r--src/db/update/UpdateContainer.hxx (renamed from src/update/UpdateContainer.hxx)0
-rw-r--r--src/db/update/UpdateDatabase.cxx (renamed from src/update/UpdateDatabase.cxx)6
-rw-r--r--src/db/update/UpdateDatabase.hxx (renamed from src/update/UpdateDatabase.hxx)0
-rw-r--r--src/db/update/UpdateDomain.cxx (renamed from src/update/UpdateDomain.cxx)0
-rw-r--r--src/db/update/UpdateDomain.hxx (renamed from src/update/UpdateDomain.hxx)0
-rw-r--r--src/db/update/UpdateGlue.cxx (renamed from src/update/UpdateGlue.cxx)2
-rw-r--r--src/db/update/UpdateGlue.hxx (renamed from src/update/UpdateGlue.hxx)0
-rw-r--r--src/db/update/UpdateIO.cxx (renamed from src/update/UpdateIO.cxx)2
-rw-r--r--src/db/update/UpdateIO.hxx (renamed from src/update/UpdateIO.hxx)0
-rw-r--r--src/db/update/UpdateInternal.hxx (renamed from src/update/UpdateInternal.hxx)0
-rw-r--r--src/db/update/UpdateQueue.cxx (renamed from src/update/UpdateQueue.cxx)0
-rw-r--r--src/db/update/UpdateQueue.hxx (renamed from src/update/UpdateQueue.hxx)0
-rw-r--r--src/db/update/UpdateRemove.cxx (renamed from src/update/UpdateRemove.cxx)4
-rw-r--r--src/db/update/UpdateRemove.hxx (renamed from src/update/UpdateRemove.hxx)0
-rw-r--r--src/db/update/UpdateSong.cxx (renamed from src/update/UpdateSong.cxx)6
-rw-r--r--src/db/update/UpdateSong.hxx (renamed from src/update/UpdateSong.hxx)0
-rw-r--r--src/db/update/UpdateWalk.cxx (renamed from src/update/UpdateWalk.cxx)8
-rw-r--r--src/db/update/UpdateWalk.hxx (renamed from src/update/UpdateWalk.hxx)0
-rw-r--r--src/playlist/PlaylistSong.cxx2
-rw-r--r--src/queue/QueueSave.cxx2
-rw-r--r--src/sticker/SongSticker.cxx6
121 files changed, 106 insertions, 106 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index 2b386f5de..c5adc4153 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -23,8 +23,8 @@
#include "LogInit.hxx"
#include "Log.hxx"
#include "config/ConfigGlobal.hxx"
-#include "DatabaseRegistry.hxx"
-#include "DatabasePlugin.hxx"
+#include "db/Registry.hxx"
+#include "db/DatabasePlugin.hxx"
#include "decoder/DecoderList.hxx"
#include "decoder/DecoderPlugin.hxx"
#include "output/OutputList.hxx"
@@ -99,7 +99,7 @@ static void version(void)
"This is free software; see the source for copying conditions. There is NO\n"
"warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
"\n"
- "Database plugins:");
+ "db/Database plugins:");
for (auto i = database_plugins; *i != nullptr; ++i)
printf(" %s", (*i)->name);
diff --git a/src/DetachedSong.cxx b/src/DetachedSong.cxx
index 8882d2863..2fff9b70f 100644
--- a/src/DetachedSong.cxx
+++ b/src/DetachedSong.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "DetachedSong.hxx"
-#include "LightSong.hxx"
+#include "db/LightSong.hxx"
#include "util/UriUtil.hxx"
#include "fs/Traits.hxx"
diff --git a/src/Instance.hxx b/src/Instance.hxx
index 71203ba48..ca7bb5197 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -21,7 +21,7 @@
#define MPD_INSTANCE_HXX
#include "check.h"
-#include "DatabaseListener.hxx"
+#include "db/DatabaseListener.hxx"
#include "Compiler.h"
class ClientList;
diff --git a/src/Main.cxx b/src/Main.cxx
index 815f26f0a..e71814cff 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -23,13 +23,13 @@
#include "CommandLine.hxx"
#include "PlaylistFile.hxx"
#include "PlaylistGlobal.hxx"
-#include "update/UpdateGlue.hxx"
+#include "db/update/UpdateGlue.hxx"
#include "MusicChunk.hxx"
#include "StateFile.hxx"
#include "PlayerThread.hxx"
#include "Mapper.hxx"
-#include "DatabaseGlue.hxx"
-#include "DatabaseSimple.hxx"
+#include "db/DatabaseGlue.hxx"
+#include "db/DatabaseSimple.hxx"
#include "Permission.hxx"
#include "Listen.hxx"
#include "client/Client.hxx"
@@ -68,7 +68,7 @@
#include "Stats.hxx"
#ifdef ENABLE_INOTIFY
-#include "update/InotifyUpdate.hxx"
+#include "db/update/InotifyUpdate.hxx"
#endif
#ifdef ENABLE_SQLITE
diff --git a/src/Mapper.cxx b/src/Mapper.cxx
index f29fd0646..ebcab91bf 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -23,10 +23,10 @@
#include "config.h"
#include "Mapper.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
#include "DetachedSong.hxx"
-#include "LightSong.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
+#include "db/LightSong.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx"
#include "fs/Charset.hxx"
diff --git a/src/PlaylistEdit.cxx b/src/PlaylistEdit.cxx
index cbae02fef..87a64c5c9 100644
--- a/src/PlaylistEdit.cxx
+++ b/src/PlaylistEdit.cxx
@@ -32,7 +32,7 @@
#include "DetachedSong.hxx"
#include "Mapper.hxx"
#include "Idle.hxx"
-#include "DatabaseSong.hxx"
+#include "db/DatabaseSong.hxx"
#include "Log.hxx"
#include <stdlib.h>
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index befa45d94..0b0f8d32d 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -22,7 +22,7 @@
#include "PlaylistSave.hxx"
#include "PlaylistInfo.hxx"
#include "PlaylistVector.hxx"
-#include "DatabaseSong.hxx"
+#include "db/DatabaseSong.hxx"
#include "DetachedSong.hxx"
#include "Mapper.hxx"
#include "fs/TextFile.hxx"
diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx
index a0697f8cf..faf373be7 100644
--- a/src/PlaylistPrint.cxx
+++ b/src/PlaylistPrint.cxx
@@ -23,8 +23,8 @@
#include "Playlist.hxx"
#include "queue/QueuePrint.hxx"
#include "SongPrint.hxx"
-#include "DatabaseGlue.hxx"
-#include "DatabasePlugin.hxx"
+#include "db/DatabaseGlue.hxx"
+#include "db/DatabasePlugin.hxx"
#include "client/Client.hxx"
#include "input/InputStream.hxx"
#include "DetachedSong.hxx"
diff --git a/src/PlaylistUpdate.cxx b/src/PlaylistUpdate.cxx
index 800ad49c9..114305960 100644
--- a/src/PlaylistUpdate.cxx
+++ b/src/PlaylistUpdate.cxx
@@ -19,9 +19,9 @@
#include "config.h"
#include "Playlist.hxx"
-#include "DatabaseGlue.hxx"
-#include "DatabasePlugin.hxx"
-#include "LightSong.hxx"
+#include "db/DatabaseGlue.hxx"
+#include "db/DatabasePlugin.hxx"
+#include "db/LightSong.hxx"
#include "DetachedSong.hxx"
#include "tag/Tag.hxx"
#include "Idle.hxx"
diff --git a/src/PlaylistVector.cxx b/src/PlaylistVector.cxx
index 094167e33..82a3519d9 100644
--- a/src/PlaylistVector.cxx
+++ b/src/PlaylistVector.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "PlaylistVector.hxx"
-#include "DatabaseLock.hxx"
+#include "db/DatabaseLock.hxx"
#include <algorithm>
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx
index 594ac3abc..637150c37 100644
--- a/src/SongFilter.cxx
+++ b/src/SongFilter.cxx
@@ -19,8 +19,8 @@
#include "config.h"
#include "SongFilter.hxx"
-#include "Song.hxx"
-#include "LightSong.hxx"
+#include "db/Song.hxx"
+#include "db/LightSong.hxx"
#include "DetachedSong.hxx"
#include "tag/Tag.hxx"
#include "util/ASCII.hxx"
diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx
index 18d732161..b0c9ed0a6 100644
--- a/src/SongPrint.cxx
+++ b/src/SongPrint.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "SongPrint.hxx"
-#include "LightSong.hxx"
+#include "db/LightSong.hxx"
#include "DetachedSong.hxx"
#include "TimePrint.hxx"
#include "TagPrint.hxx"
diff --git a/src/SongSave.cxx b/src/SongSave.cxx
index 790047bb6..d53e5bb62 100644
--- a/src/SongSave.cxx
+++ b/src/SongSave.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "SongSave.hxx"
-#include "Song.hxx"
+#include "db/Song.hxx"
#include "DetachedSong.hxx"
#include "TagSave.hxx"
#include "fs/TextFile.hxx"
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index 571415ff1..0f3e9b172 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -18,10 +18,10 @@
*/
#include "config.h" /* must be first for large file support */
-#include "Song.hxx"
#include "DetachedSong.hxx"
+#include "db/Song.hxx"
+#include "db/Directory.hxx"
#include "util/UriUtil.hxx"
-#include "Directory.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/Traits.hxx"
diff --git a/src/Stats.cxx b/src/Stats.cxx
index 5b979b322..940a984da 100644
--- a/src/Stats.cxx
+++ b/src/Stats.cxx
@@ -21,10 +21,10 @@
#include "Stats.hxx"
#include "PlayerControl.hxx"
#include "client/Client.hxx"
-#include "DatabaseSelection.hxx"
-#include "DatabaseGlue.hxx"
-#include "DatabasePlugin.hxx"
-#include "DatabaseSimple.hxx"
+#include "db/Selection.hxx"
+#include "db/DatabaseGlue.hxx"
+#include "db/DatabasePlugin.hxx"
+#include "db/DatabaseSimple.hxx"
#include "util/Error.hxx"
#include "system/Clock.hxx"
#include "Log.hxx"
diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx
index cf3bf6851..73e363f24 100644
--- a/src/command/CommandError.cxx
+++ b/src/command/CommandError.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "CommandError.hxx"
-#include "DatabaseError.hxx"
+#include "db/DatabaseError.hxx"
#include "protocol/Result.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx
index eaff1e3ec..2b871e565 100644
--- a/src/command/DatabaseCommands.cxx
+++ b/src/command/DatabaseCommands.cxx
@@ -19,10 +19,10 @@
#include "config.h"
#include "DatabaseCommands.hxx"
-#include "DatabaseQueue.hxx"
-#include "DatabasePlaylist.hxx"
-#include "DatabasePrint.hxx"
-#include "DatabaseSelection.hxx"
+#include "db/DatabaseQueue.hxx"
+#include "db/DatabasePlaylist.hxx"
+#include "db/DatabasePrint.hxx"
+#include "db/Selection.hxx"
#include "CommandError.hxx"
#include "client/Client.hxx"
#include "tag/Tag.hxx"
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx
index 4d61884c1..67d2aecf3 100644
--- a/src/command/OtherCommands.cxx
+++ b/src/command/OtherCommands.cxx
@@ -20,9 +20,9 @@
#include "config.h"
#include "OtherCommands.hxx"
#include "DatabaseCommands.hxx"
+#include "db/update/UpdateGlue.hxx"
#include "CommandError.hxx"
-#include "update/UpdateGlue.hxx"
-#include "Directory.hxx"
+#include "db/Directory.hxx"
#include "DetachedSong.hxx"
#include "SongPrint.hxx"
#include "TagPrint.hxx"
diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx
index 759a37030..f703057cf 100644
--- a/src/command/PlayerCommands.cxx
+++ b/src/command/PlayerCommands.cxx
@@ -22,7 +22,7 @@
#include "CommandError.hxx"
#include "Playlist.hxx"
#include "PlaylistPrint.hxx"
-#include "update/UpdateGlue.hxx"
+#include "db/update/UpdateGlue.hxx"
#include "client/Client.hxx"
#include "Volume.hxx"
#include "output/OutputAll.hxx"
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx
index 0441811c4..fbbb66757 100644
--- a/src/command/PlaylistCommands.cxx
+++ b/src/command/PlaylistCommands.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "PlaylistCommands.hxx"
-#include "DatabasePlaylist.hxx"
+#include "db/DatabasePlaylist.hxx"
#include "CommandError.hxx"
#include "PlaylistPrint.hxx"
#include "PlaylistSave.hxx"
diff --git a/src/command/QueueCommands.cxx b/src/command/QueueCommands.cxx
index e884c71c3..ed2b551c4 100644
--- a/src/command/QueueCommands.cxx
+++ b/src/command/QueueCommands.cxx
@@ -20,9 +20,9 @@
#include "config.h"
#include "QueueCommands.hxx"
#include "CommandError.hxx"
-#include "DatabaseQueue.hxx"
+#include "db/DatabaseQueue.hxx"
#include "SongFilter.hxx"
-#include "DatabaseSelection.hxx"
+#include "db/Selection.hxx"
#include "Playlist.hxx"
#include "PlaylistPrint.hxx"
#include "client/ClientFile.hxx"
diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx
index cf1be076b..68a0d585f 100644
--- a/src/command/StickerCommands.cxx
+++ b/src/command/StickerCommands.cxx
@@ -20,10 +20,10 @@
#include "config.h"
#include "StickerCommands.hxx"
#include "SongPrint.hxx"
-#include "DatabaseLock.hxx"
-#include "DatabasePlugin.hxx"
-#include "DatabaseGlue.hxx"
-#include "DatabaseSimple.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/DatabasePlugin.hxx"
+#include "db/DatabaseGlue.hxx"
+#include "db/DatabaseSimple.hxx"
#include "sticker/SongSticker.hxx"
#include "sticker/StickerPrint.hxx"
#include "sticker/StickerDatabase.hxx"
diff --git a/src/DatabaseError.cxx b/src/db/DatabaseError.cxx
index e0cbdd6a3..e0cbdd6a3 100644
--- a/src/DatabaseError.cxx
+++ b/src/db/DatabaseError.cxx
diff --git a/src/DatabaseError.hxx b/src/db/DatabaseError.hxx
index 1485a21b6..1485a21b6 100644
--- a/src/DatabaseError.hxx
+++ b/src/db/DatabaseError.hxx
diff --git a/src/DatabaseGlue.cxx b/src/db/DatabaseGlue.cxx
index ce53ec184..3734e156c 100644
--- a/src/DatabaseGlue.cxx
+++ b/src/db/DatabaseGlue.cxx
@@ -20,14 +20,14 @@
#include "config.h"
#include "DatabaseGlue.hxx"
#include "DatabaseSimple.hxx"
-#include "DatabaseRegistry.hxx"
+#include "Registry.hxx"
#include "DatabaseError.hxx"
#include "Directory.hxx"
#include "util/Error.hxx"
#include "config/ConfigData.hxx"
#include "Stats.hxx"
#include "DatabasePlugin.hxx"
-#include "db/SimpleDatabasePlugin.hxx"
+#include "plugins/SimpleDatabasePlugin.hxx"
#include <assert.h>
#include <string.h>
diff --git a/src/DatabaseGlue.hxx b/src/db/DatabaseGlue.hxx
index 78032edb2..78032edb2 100644
--- a/src/DatabaseGlue.hxx
+++ b/src/db/DatabaseGlue.hxx
diff --git a/src/DatabaseListener.hxx b/src/db/DatabaseListener.hxx
index 4da458866..4da458866 100644
--- a/src/DatabaseListener.hxx
+++ b/src/db/DatabaseListener.hxx
diff --git a/src/DatabaseLock.cxx b/src/db/DatabaseLock.cxx
index c0b5e4844..c0b5e4844 100644
--- a/src/DatabaseLock.cxx
+++ b/src/db/DatabaseLock.cxx
diff --git a/src/DatabaseLock.hxx b/src/db/DatabaseLock.hxx
index 9d0b0c152..9d0b0c152 100644
--- a/src/DatabaseLock.hxx
+++ b/src/db/DatabaseLock.hxx
diff --git a/src/DatabasePlaylist.cxx b/src/db/DatabasePlaylist.cxx
index 58742ca64..64b365d2a 100644
--- a/src/DatabasePlaylist.cxx
+++ b/src/db/DatabasePlaylist.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "DatabasePlaylist.hxx"
-#include "DatabaseSelection.hxx"
+#include "Selection.hxx"
#include "PlaylistFile.hxx"
#include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx"
diff --git a/src/DatabasePlaylist.hxx b/src/db/DatabasePlaylist.hxx
index 1ee7584d3..1ee7584d3 100644
--- a/src/DatabasePlaylist.hxx
+++ b/src/db/DatabasePlaylist.hxx
diff --git a/src/DatabasePlugin.hxx b/src/db/DatabasePlugin.hxx
index 2ded7f736..b0cb41502 100644
--- a/src/DatabasePlugin.hxx
+++ b/src/db/DatabasePlugin.hxx
@@ -26,7 +26,7 @@
#ifndef MPD_DATABASE_PLUGIN_HXX
#define MPD_DATABASE_PLUGIN_HXX
-#include "DatabaseVisitor.hxx"
+#include "Visitor.hxx"
#include "tag/TagType.h"
#include "Compiler.h"
diff --git a/src/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index b22141aef..9ed0b0826 100644
--- a/src/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "DatabasePrint.hxx"
-#include "DatabaseSelection.hxx"
+#include "Selection.hxx"
#include "SongFilter.hxx"
#include "SongPrint.hxx"
#include "TimePrint.hxx"
diff --git a/src/DatabasePrint.hxx b/src/db/DatabasePrint.hxx
index 2007e256b..2007e256b 100644
--- a/src/DatabasePrint.hxx
+++ b/src/db/DatabasePrint.hxx
diff --git a/src/DatabaseQueue.cxx b/src/db/DatabaseQueue.cxx
index ee1dbd57c..ee1dbd57c 100644
--- a/src/DatabaseQueue.cxx
+++ b/src/db/DatabaseQueue.cxx
diff --git a/src/DatabaseQueue.hxx b/src/db/DatabaseQueue.hxx
index e653f973c..e653f973c 100644
--- a/src/DatabaseQueue.hxx
+++ b/src/db/DatabaseQueue.hxx
diff --git a/src/DatabaseSave.cxx b/src/db/DatabaseSave.cxx
index e9c81442b..e9c81442b 100644
--- a/src/DatabaseSave.cxx
+++ b/src/db/DatabaseSave.cxx
diff --git a/src/DatabaseSave.hxx b/src/db/DatabaseSave.hxx
index 3bd3377ae..3bd3377ae 100644
--- a/src/DatabaseSave.hxx
+++ b/src/db/DatabaseSave.hxx
diff --git a/src/DatabaseSimple.hxx b/src/db/DatabaseSimple.hxx
index b99b3bfa5..b99b3bfa5 100644
--- a/src/DatabaseSimple.hxx
+++ b/src/db/DatabaseSimple.hxx
diff --git a/src/DatabaseSong.cxx b/src/db/DatabaseSong.cxx
index 592d38b85..592d38b85 100644
--- a/src/DatabaseSong.cxx
+++ b/src/db/DatabaseSong.cxx
diff --git a/src/DatabaseSong.hxx b/src/db/DatabaseSong.hxx
index 0200af6b8..0200af6b8 100644
--- a/src/DatabaseSong.hxx
+++ b/src/db/DatabaseSong.hxx
diff --git a/src/Directory.cxx b/src/db/Directory.cxx
index 14cf88eb5..e74eabd19 100644
--- a/src/Directory.cxx
+++ b/src/db/Directory.cxx
@@ -22,7 +22,7 @@
#include "LightDirectory.hxx"
#include "SongFilter.hxx"
#include "PlaylistVector.hxx"
-#include "DatabaseLock.hxx"
+#include "db/DatabaseLock.hxx"
#include "SongSort.hxx"
#include "Song.hxx"
#include "LightSong.hxx"
diff --git a/src/Directory.hxx b/src/db/Directory.hxx
index c64a028ba..e114b27f4 100644
--- a/src/Directory.hxx
+++ b/src/db/Directory.hxx
@@ -23,7 +23,7 @@
#include "check.h"
#include "util/list.h"
#include "Compiler.h"
-#include "DatabaseVisitor.hxx"
+#include "db/Visitor.hxx"
#include "PlaylistVector.hxx"
#include <string>
diff --git a/src/DirectorySave.cxx b/src/db/DirectorySave.cxx
index 499f84734..499f84734 100644
--- a/src/DirectorySave.cxx
+++ b/src/db/DirectorySave.cxx
diff --git a/src/DirectorySave.hxx b/src/db/DirectorySave.hxx
index 07e9e158b..07e9e158b 100644
--- a/src/DirectorySave.hxx
+++ b/src/db/DirectorySave.hxx
diff --git a/src/DatabaseHelpers.cxx b/src/db/Helpers.cxx
index 58e7aaa3b..579b83e15 100644
--- a/src/DatabaseHelpers.cxx
+++ b/src/db/Helpers.cxx
@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "DatabaseHelpers.hxx"
+#include "Helpers.hxx"
#include "DatabasePlugin.hxx"
#include "LightSong.hxx"
#include "tag/Tag.hxx"
diff --git a/src/DatabaseHelpers.hxx b/src/db/Helpers.hxx
index 0880e4a56..24db260c0 100644
--- a/src/DatabaseHelpers.hxx
+++ b/src/db/Helpers.hxx
@@ -20,7 +20,7 @@
#ifndef MPD_MEMORY_DATABASE_PLUGIN_HXX
#define MPD_MEMORY_DATABASE_PLUGIN_HXX
-#include "DatabaseVisitor.hxx"
+#include "Visitor.hxx"
#include "tag/TagType.h"
class Error;
diff --git a/src/LightDirectory.hxx b/src/db/LightDirectory.hxx
index d134151a4..d134151a4 100644
--- a/src/LightDirectory.hxx
+++ b/src/db/LightDirectory.hxx
diff --git a/src/LightSong.cxx b/src/db/LightSong.cxx
index af1e801f8..af1e801f8 100644
--- a/src/LightSong.cxx
+++ b/src/db/LightSong.cxx
diff --git a/src/LightSong.hxx b/src/db/LightSong.hxx
index c0cd47749..c0cd47749 100644
--- a/src/LightSong.hxx
+++ b/src/db/LightSong.hxx
diff --git a/src/DatabaseRegistry.cxx b/src/db/Registry.cxx
index b8a91343e..295d3cf2a 100644
--- a/src/DatabaseRegistry.cxx
+++ b/src/db/Registry.cxx
@@ -18,10 +18,10 @@
*/
#include "config.h"
-#include "DatabaseRegistry.hxx"
-#include "db/SimpleDatabasePlugin.hxx"
-#include "db/ProxyDatabasePlugin.hxx"
-#include "db/UpnpDatabasePlugin.hxx"
+#include "Registry.hxx"
+#include "plugins/SimpleDatabasePlugin.hxx"
+#include "plugins/ProxyDatabasePlugin.hxx"
+#include "plugins/UpnpDatabasePlugin.hxx"
#include <string.h>
diff --git a/src/DatabaseRegistry.hxx b/src/db/Registry.hxx
index 050842e21..050842e21 100644
--- a/src/DatabaseRegistry.hxx
+++ b/src/db/Registry.hxx
diff --git a/src/DatabaseSelection.cxx b/src/db/Selection.cxx
index 035321252..96382eed7 100644
--- a/src/DatabaseSelection.cxx
+++ b/src/db/Selection.cxx
@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "DatabaseSelection.hxx"
+#include "Selection.hxx"
#include "SongFilter.hxx"
DatabaseSelection::DatabaseSelection(const char *_uri, bool _recursive,
diff --git a/src/DatabaseSelection.hxx b/src/db/Selection.hxx
index a39ce7afe..a39ce7afe 100644
--- a/src/DatabaseSelection.hxx
+++ b/src/db/Selection.hxx
diff --git a/src/Song.cxx b/src/db/Song.cxx
index 15924a40a..15924a40a 100644
--- a/src/Song.cxx
+++ b/src/db/Song.cxx
diff --git a/src/Song.hxx b/src/db/Song.hxx
index 0b94fe6d0..0b94fe6d0 100644
--- a/src/Song.hxx
+++ b/src/db/Song.hxx
diff --git a/src/SongSort.cxx b/src/db/SongSort.cxx
index dcea033b6..dcea033b6 100644
--- a/src/SongSort.cxx
+++ b/src/db/SongSort.cxx
diff --git a/src/SongSort.hxx b/src/db/SongSort.hxx
index 28b903532..28b903532 100644
--- a/src/SongSort.hxx
+++ b/src/db/SongSort.hxx
diff --git a/src/DatabaseVisitor.hxx b/src/db/Visitor.hxx
index 0ec29bf49..0ec29bf49 100644
--- a/src/DatabaseVisitor.hxx
+++ b/src/db/Visitor.hxx
diff --git a/src/db/LazyDatabase.cxx b/src/db/plugins/LazyDatabase.cxx
index 6a01ffb82..6a01ffb82 100644
--- a/src/db/LazyDatabase.cxx
+++ b/src/db/plugins/LazyDatabase.cxx
diff --git a/src/db/LazyDatabase.hxx b/src/db/plugins/LazyDatabase.hxx
index f718ecb3f..336b8558f 100644
--- a/src/db/LazyDatabase.hxx
+++ b/src/db/plugins/LazyDatabase.hxx
@@ -20,7 +20,7 @@
#ifndef MPD_LAZY_DATABASE_PLUGIN_HXX
#define MPD_LAZY_DATABASE_PLUGIN_HXX
-#include "DatabasePlugin.hxx"
+#include "db/DatabasePlugin.hxx"
/**
* A wrapper for a #Database object that gets opened on the first
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx
index 7253ba0d0..daa963c7d 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/plugins/ProxyDatabasePlugin.cxx
@@ -19,13 +19,13 @@
#include "config.h"
#include "ProxyDatabasePlugin.hxx"
-#include "DatabasePlugin.hxx"
-#include "DatabaseListener.hxx"
-#include "DatabaseSelection.hxx"
-#include "DatabaseError.hxx"
+#include "db/DatabasePlugin.hxx"
+#include "db/DatabaseListener.hxx"
+#include "db/Selection.hxx"
+#include "db/DatabaseError.hxx"
#include "PlaylistInfo.hxx"
-#include "LightDirectory.hxx"
-#include "LightSong.hxx"
+#include "db/LightDirectory.hxx"
+#include "db/LightSong.hxx"
#include "SongFilter.hxx"
#include "Compiler.h"
#include "config/ConfigData.hxx"
diff --git a/src/db/ProxyDatabasePlugin.hxx b/src/db/plugins/ProxyDatabasePlugin.hxx
index 699d374b5..699d374b5 100644
--- a/src/db/ProxyDatabasePlugin.hxx
+++ b/src/db/plugins/ProxyDatabasePlugin.hxx
diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/plugins/SimpleDatabasePlugin.cxx
index 73e080b41..55e08b6d7 100644
--- a/src/db/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/SimpleDatabasePlugin.cxx
@@ -19,15 +19,15 @@
#include "config.h"
#include "SimpleDatabasePlugin.hxx"
-#include "DatabaseSelection.hxx"
-#include "DatabaseHelpers.hxx"
-#include "LightDirectory.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
+#include "db/Selection.hxx"
+#include "db/Helpers.hxx"
+#include "db/LightDirectory.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
#include "SongFilter.hxx"
-#include "DatabaseSave.hxx"
-#include "DatabaseLock.hxx"
-#include "DatabaseError.hxx"
+#include "db/DatabaseSave.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/DatabaseError.hxx"
#include "fs/TextFile.hxx"
#include "config/ConfigData.hxx"
#include "fs/FileSystem.hxx"
diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/plugins/SimpleDatabasePlugin.hxx
index 509b91e4e..137a60884 100644
--- a/src/db/SimpleDatabasePlugin.hxx
+++ b/src/db/plugins/SimpleDatabasePlugin.hxx
@@ -20,9 +20,9 @@
#ifndef MPD_SIMPLE_DATABASE_PLUGIN_HXX
#define MPD_SIMPLE_DATABASE_PLUGIN_HXX
-#include "DatabasePlugin.hxx"
+#include "db/DatabasePlugin.hxx"
#include "fs/AllocatedPath.hxx"
-#include "LightSong.hxx"
+#include "db/LightSong.hxx"
#include "Compiler.h"
#include <cassert>
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/plugins/UpnpDatabasePlugin.cxx
index 46084061f..10575fc94 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/plugins/UpnpDatabasePlugin.cxx
@@ -26,11 +26,11 @@
#include "upnp/Directory.hxx"
#include "upnp/Tags.hxx"
#include "upnp/Util.hxx"
-#include "DatabasePlugin.hxx"
-#include "DatabaseSelection.hxx"
-#include "DatabaseError.hxx"
-#include "LightDirectory.hxx"
-#include "LightSong.hxx"
+#include "db/DatabasePlugin.hxx"
+#include "db/Selection.hxx"
+#include "db/DatabaseError.hxx"
+#include "db/LightDirectory.hxx"
+#include "db/LightSong.hxx"
#include "config/ConfigData.hxx"
#include "tag/TagBuilder.hxx"
#include "tag/TagTable.hxx"
diff --git a/src/db/UpnpDatabasePlugin.hxx b/src/db/plugins/UpnpDatabasePlugin.hxx
index 0228405cd..0228405cd 100644
--- a/src/db/UpnpDatabasePlugin.hxx
+++ b/src/db/plugins/UpnpDatabasePlugin.hxx
diff --git a/src/db/upnp/Action.hxx b/src/db/plugins/upnp/Action.hxx
index 28c88be92..28c88be92 100644
--- a/src/db/upnp/Action.hxx
+++ b/src/db/plugins/upnp/Action.hxx
diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/plugins/upnp/ContentDirectoryService.cxx
index 35445e09d..35445e09d 100644
--- a/src/db/upnp/ContentDirectoryService.cxx
+++ b/src/db/plugins/upnp/ContentDirectoryService.cxx
diff --git a/src/db/upnp/ContentDirectoryService.hxx b/src/db/plugins/upnp/ContentDirectoryService.hxx
index 24be5dfbf..24be5dfbf 100644
--- a/src/db/upnp/ContentDirectoryService.hxx
+++ b/src/db/plugins/upnp/ContentDirectoryService.hxx
diff --git a/src/db/upnp/Device.cxx b/src/db/plugins/upnp/Device.cxx
index 7bec1cccd..7bec1cccd 100644
--- a/src/db/upnp/Device.cxx
+++ b/src/db/plugins/upnp/Device.cxx
diff --git a/src/db/upnp/Device.hxx b/src/db/plugins/upnp/Device.hxx
index dd7ecac2d..dd7ecac2d 100644
--- a/src/db/upnp/Device.hxx
+++ b/src/db/plugins/upnp/Device.hxx
diff --git a/src/db/upnp/Directory.cxx b/src/db/plugins/upnp/Directory.cxx
index adb8b213a..adb8b213a 100644
--- a/src/db/upnp/Directory.cxx
+++ b/src/db/plugins/upnp/Directory.cxx
diff --git a/src/db/upnp/Directory.hxx b/src/db/plugins/upnp/Directory.hxx
index 433979900..433979900 100644
--- a/src/db/upnp/Directory.hxx
+++ b/src/db/plugins/upnp/Directory.hxx
diff --git a/src/db/upnp/Discovery.cxx b/src/db/plugins/upnp/Discovery.cxx
index 5203dba83..5203dba83 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/plugins/upnp/Discovery.cxx
diff --git a/src/db/upnp/Discovery.hxx b/src/db/plugins/upnp/Discovery.hxx
index 4c64fe420..4c64fe420 100644
--- a/src/db/upnp/Discovery.hxx
+++ b/src/db/plugins/upnp/Discovery.hxx
diff --git a/src/db/upnp/Domain.cxx b/src/db/plugins/upnp/Domain.cxx
index 010d4c7c2..010d4c7c2 100644
--- a/src/db/upnp/Domain.cxx
+++ b/src/db/plugins/upnp/Domain.cxx
diff --git a/src/db/upnp/Domain.hxx b/src/db/plugins/upnp/Domain.hxx
index ec01ef735..ec01ef735 100644
--- a/src/db/upnp/Domain.hxx
+++ b/src/db/plugins/upnp/Domain.hxx
diff --git a/src/db/upnp/Object.cxx b/src/db/plugins/upnp/Object.cxx
index 703fb0be4..703fb0be4 100644
--- a/src/db/upnp/Object.cxx
+++ b/src/db/plugins/upnp/Object.cxx
diff --git a/src/db/upnp/Object.hxx b/src/db/plugins/upnp/Object.hxx
index 16a66c774..16a66c774 100644
--- a/src/db/upnp/Object.hxx
+++ b/src/db/plugins/upnp/Object.hxx
diff --git a/src/db/upnp/Tags.cxx b/src/db/plugins/upnp/Tags.cxx
index fd65df4d0..fd65df4d0 100644
--- a/src/db/upnp/Tags.cxx
+++ b/src/db/plugins/upnp/Tags.cxx
diff --git a/src/db/upnp/Tags.hxx b/src/db/plugins/upnp/Tags.hxx
index ec6d18478..ec6d18478 100644
--- a/src/db/upnp/Tags.hxx
+++ b/src/db/plugins/upnp/Tags.hxx
diff --git a/src/db/upnp/Util.cxx b/src/db/plugins/upnp/Util.cxx
index cf34a47d3..cf34a47d3 100644
--- a/src/db/upnp/Util.cxx
+++ b/src/db/plugins/upnp/Util.cxx
diff --git a/src/db/upnp/Util.hxx b/src/db/plugins/upnp/Util.hxx
index 58e382faa..58e382faa 100644
--- a/src/db/upnp/Util.hxx
+++ b/src/db/plugins/upnp/Util.hxx
diff --git a/src/db/upnp/WorkQueue.hxx b/src/db/plugins/upnp/WorkQueue.hxx
index fe8ce53f9..fe8ce53f9 100644
--- a/src/db/upnp/WorkQueue.hxx
+++ b/src/db/plugins/upnp/WorkQueue.hxx
diff --git a/src/db/upnp/ixmlwrap.cxx b/src/db/plugins/upnp/ixmlwrap.cxx
index 6a2829cf9..6a2829cf9 100644
--- a/src/db/upnp/ixmlwrap.cxx
+++ b/src/db/plugins/upnp/ixmlwrap.cxx
diff --git a/src/db/upnp/ixmlwrap.hxx b/src/db/plugins/upnp/ixmlwrap.hxx
index 0d519a323..0d519a323 100644
--- a/src/db/upnp/ixmlwrap.hxx
+++ b/src/db/plugins/upnp/ixmlwrap.hxx
diff --git a/src/db/upnp/upnpplib.cxx b/src/db/plugins/upnp/upnpplib.cxx
index 27b4e0564..27b4e0564 100644
--- a/src/db/upnp/upnpplib.cxx
+++ b/src/db/plugins/upnp/upnpplib.cxx
diff --git a/src/db/upnp/upnpplib.hxx b/src/db/plugins/upnp/upnpplib.hxx
index 6759aa16d..6759aa16d 100644
--- a/src/db/upnp/upnpplib.hxx
+++ b/src/db/plugins/upnp/upnpplib.hxx
diff --git a/src/update/InotifyDomain.cxx b/src/db/update/InotifyDomain.cxx
index 4a3ab2d79..4a3ab2d79 100644
--- a/src/update/InotifyDomain.cxx
+++ b/src/db/update/InotifyDomain.cxx
diff --git a/src/update/InotifyDomain.hxx b/src/db/update/InotifyDomain.hxx
index ad6202361..ad6202361 100644
--- a/src/update/InotifyDomain.hxx
+++ b/src/db/update/InotifyDomain.hxx
diff --git a/src/update/InotifyQueue.cxx b/src/db/update/InotifyQueue.cxx
index f4bccf7ae..f4bccf7ae 100644
--- a/src/update/InotifyQueue.cxx
+++ b/src/db/update/InotifyQueue.cxx
diff --git a/src/update/InotifyQueue.hxx b/src/db/update/InotifyQueue.hxx
index 99e2635b1..99e2635b1 100644
--- a/src/update/InotifyQueue.hxx
+++ b/src/db/update/InotifyQueue.hxx
diff --git a/src/update/InotifySource.cxx b/src/db/update/InotifySource.cxx
index c2783690e..c2783690e 100644
--- a/src/update/InotifySource.cxx
+++ b/src/db/update/InotifySource.cxx
diff --git a/src/update/InotifySource.hxx b/src/db/update/InotifySource.hxx
index 77c11093c..77c11093c 100644
--- a/src/update/InotifySource.hxx
+++ b/src/db/update/InotifySource.hxx
diff --git a/src/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx
index 7515990d7..7515990d7 100644
--- a/src/update/InotifyUpdate.cxx
+++ b/src/db/update/InotifyUpdate.cxx
diff --git a/src/update/InotifyUpdate.hxx b/src/db/update/InotifyUpdate.hxx
index 2d7d4e3b4..2d7d4e3b4 100644
--- a/src/update/InotifyUpdate.hxx
+++ b/src/db/update/InotifyUpdate.hxx
diff --git a/src/update/UpdateArchive.cxx b/src/db/update/UpdateArchive.cxx
index ec46a4e17..5e733202d 100644
--- a/src/update/UpdateArchive.cxx
+++ b/src/db/update/UpdateArchive.cxx
@@ -21,9 +21,9 @@
#include "UpdateArchive.hxx"
#include "UpdateInternal.hxx"
#include "UpdateDomain.hxx"
-#include "DatabaseLock.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "archive/ArchiveList.hxx"
diff --git a/src/update/UpdateArchive.hxx b/src/db/update/UpdateArchive.hxx
index 1fc9af349..1fc9af349 100644
--- a/src/update/UpdateArchive.hxx
+++ b/src/db/update/UpdateArchive.hxx
diff --git a/src/update/UpdateContainer.cxx b/src/db/update/UpdateContainer.cxx
index 0417aa999..c03d88748 100644
--- a/src/update/UpdateContainer.cxx
+++ b/src/db/update/UpdateContainer.cxx
@@ -22,9 +22,9 @@
#include "UpdateInternal.hxx"
#include "UpdateDatabase.hxx"
#include "UpdateDomain.hxx"
-#include "DatabaseLock.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
#include "decoder/DecoderPlugin.hxx"
#include "decoder/DecoderList.hxx"
#include "Mapper.hxx"
diff --git a/src/update/UpdateContainer.hxx b/src/db/update/UpdateContainer.hxx
index 8125f71ee..8125f71ee 100644
--- a/src/update/UpdateContainer.hxx
+++ b/src/db/update/UpdateContainer.hxx
diff --git a/src/update/UpdateDatabase.cxx b/src/db/update/UpdateDatabase.cxx
index fe49a90fb..8ef0b6d82 100644
--- a/src/update/UpdateDatabase.cxx
+++ b/src/db/update/UpdateDatabase.cxx
@@ -21,9 +21,9 @@
#include "UpdateDatabase.hxx"
#include "UpdateRemove.hxx"
#include "PlaylistVector.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
-#include "DatabaseLock.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
+#include "db/DatabaseLock.hxx"
#include <assert.h>
#include <stddef.h>
diff --git a/src/update/UpdateDatabase.hxx b/src/db/update/UpdateDatabase.hxx
index bd7c395f2..bd7c395f2 100644
--- a/src/update/UpdateDatabase.hxx
+++ b/src/db/update/UpdateDatabase.hxx
diff --git a/src/update/UpdateDomain.cxx b/src/db/update/UpdateDomain.cxx
index 80ad4fd22..80ad4fd22 100644
--- a/src/update/UpdateDomain.cxx
+++ b/src/db/update/UpdateDomain.cxx
diff --git a/src/update/UpdateDomain.hxx b/src/db/update/UpdateDomain.hxx
index a6e994390..a6e994390 100644
--- a/src/update/UpdateDomain.hxx
+++ b/src/db/update/UpdateDomain.hxx
diff --git a/src/update/UpdateGlue.cxx b/src/db/update/UpdateGlue.cxx
index 29e5f3ca7..d18747ba1 100644
--- a/src/update/UpdateGlue.cxx
+++ b/src/db/update/UpdateGlue.cxx
@@ -24,7 +24,7 @@
#include "UpdateRemove.hxx"
#include "UpdateDomain.hxx"
#include "Mapper.hxx"
-#include "DatabaseSimple.hxx"
+#include "db/DatabaseSimple.hxx"
#include "Idle.hxx"
#include "GlobalEvents.hxx"
#include "util/Error.hxx"
diff --git a/src/update/UpdateGlue.hxx b/src/db/update/UpdateGlue.hxx
index 6e247414e..6e247414e 100644
--- a/src/update/UpdateGlue.hxx
+++ b/src/db/update/UpdateGlue.hxx
diff --git a/src/update/UpdateIO.cxx b/src/db/update/UpdateIO.cxx
index 8e4406dc8..f91caf359 100644
--- a/src/update/UpdateIO.cxx
+++ b/src/db/update/UpdateIO.cxx
@@ -20,7 +20,7 @@
#include "config.h" /* must be first for large file support */
#include "UpdateIO.hxx"
#include "UpdateDomain.hxx"
-#include "Directory.hxx"
+#include "db/Directory.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
diff --git a/src/update/UpdateIO.hxx b/src/db/update/UpdateIO.hxx
index 819879422..819879422 100644
--- a/src/update/UpdateIO.hxx
+++ b/src/db/update/UpdateIO.hxx
diff --git a/src/update/UpdateInternal.hxx b/src/db/update/UpdateInternal.hxx
index 2e373bd06..2e373bd06 100644
--- a/src/update/UpdateInternal.hxx
+++ b/src/db/update/UpdateInternal.hxx
diff --git a/src/update/UpdateQueue.cxx b/src/db/update/UpdateQueue.cxx
index a6002f854..a6002f854 100644
--- a/src/update/UpdateQueue.cxx
+++ b/src/db/update/UpdateQueue.cxx
diff --git a/src/update/UpdateQueue.hxx b/src/db/update/UpdateQueue.hxx
index e4228f5ed..e4228f5ed 100644
--- a/src/update/UpdateQueue.hxx
+++ b/src/db/update/UpdateQueue.hxx
diff --git a/src/update/UpdateRemove.cxx b/src/db/update/UpdateRemove.cxx
index 30898b00b..c57758aef 100644
--- a/src/update/UpdateRemove.cxx
+++ b/src/db/update/UpdateRemove.cxx
@@ -23,8 +23,8 @@
#include "GlobalEvents.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
-#include "Song.hxx"
-#include "LightSong.hxx"
+#include "db/Song.hxx"
+#include "db/LightSong.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "Log.hxx"
diff --git a/src/update/UpdateRemove.hxx b/src/db/update/UpdateRemove.hxx
index d54e3aa80..d54e3aa80 100644
--- a/src/update/UpdateRemove.hxx
+++ b/src/db/update/UpdateRemove.hxx
diff --git a/src/update/UpdateSong.cxx b/src/db/update/UpdateSong.cxx
index 2db85a674..ac2d01cd2 100644
--- a/src/update/UpdateSong.cxx
+++ b/src/db/update/UpdateSong.cxx
@@ -24,9 +24,9 @@
#include "UpdateDatabase.hxx"
#include "UpdateContainer.hxx"
#include "UpdateDomain.hxx"
-#include "DatabaseLock.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
#include "decoder/DecoderList.hxx"
#include "Log.hxx"
diff --git a/src/update/UpdateSong.hxx b/src/db/update/UpdateSong.hxx
index 5feb01928..5feb01928 100644
--- a/src/update/UpdateSong.hxx
+++ b/src/db/update/UpdateSong.hxx
diff --git a/src/update/UpdateWalk.cxx b/src/db/update/UpdateWalk.cxx
index 21754b31d..c5a9936e9 100644
--- a/src/update/UpdateWalk.cxx
+++ b/src/db/update/UpdateWalk.cxx
@@ -24,10 +24,10 @@
#include "UpdateSong.hxx"
#include "UpdateArchive.hxx"
#include "UpdateDomain.hxx"
-#include "DatabaseLock.hxx"
-#include "DatabaseSimple.hxx"
-#include "Directory.hxx"
-#include "Song.hxx"
+#include "db/DatabaseLock.hxx"
+#include "db/DatabaseSimple.hxx"
+#include "db/Directory.hxx"
+#include "db/Song.hxx"
#include "PlaylistVector.hxx"
#include "playlist/PlaylistRegistry.hxx"
#include "Mapper.hxx"
diff --git a/src/update/UpdateWalk.hxx b/src/db/update/UpdateWalk.hxx
index e908829e3..e908829e3 100644
--- a/src/update/UpdateWalk.hxx
+++ b/src/db/update/UpdateWalk.hxx
diff --git a/src/playlist/PlaylistSong.cxx b/src/playlist/PlaylistSong.cxx
index bcbdc30be..69f8762ab 100644
--- a/src/playlist/PlaylistSong.cxx
+++ b/src/playlist/PlaylistSong.cxx
@@ -20,7 +20,7 @@
#include "config.h"
#include "PlaylistSong.hxx"
#include "Mapper.hxx"
-#include "DatabaseSong.hxx"
+#include "db/DatabaseSong.hxx"
#include "ls.hxx"
#include "tag/Tag.hxx"
#include "tag/TagBuilder.hxx"
diff --git a/src/queue/QueueSave.cxx b/src/queue/QueueSave.cxx
index 87de02c56..11c61aa9a 100644
--- a/src/queue/QueueSave.cxx
+++ b/src/queue/QueueSave.cxx
@@ -23,7 +23,7 @@
#include "PlaylistError.hxx"
#include "DetachedSong.hxx"
#include "SongSave.hxx"
-#include "DatabaseSong.hxx"
+#include "db/DatabaseSong.hxx"
#include "fs/TextFile.hxx"
#include "util/StringUtil.hxx"
#include "util/UriUtil.hxx"
diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx
index 55143d278..3431a1702 100644
--- a/src/sticker/SongSticker.cxx
+++ b/src/sticker/SongSticker.cxx
@@ -20,9 +20,9 @@
#include "config.h"
#include "SongSticker.hxx"
#include "StickerDatabase.hxx"
-#include "LightSong.hxx"
-#include "Song.hxx"
-#include "Directory.hxx"
+#include "db/LightSong.hxx"
+#include "db/Song.hxx"
+#include "db/Directory.hxx"
#include <glib.h>