aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 22:40:42 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:01:32 +0100
commita42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988 (patch)
tree8cdb38cc68839c8610936c80de36bae81b530947 /test
parentf16db6cd8054bb4722ec6e80fe529b5f2390880f (diff)
downloadmpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.tar.gz
mpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.tar.xz
mpd-a42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988.zip
LightDirectory: new struct replacing Directory in the DB API
Diffstat (limited to 'test')
-rw-r--r--test/DumpDatabase.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx
index 60c20e4ae..7b959a215 100644
--- a/test/DumpDatabase.cxx
+++ b/test/DumpDatabase.cxx
@@ -22,7 +22,7 @@
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "DatabaseListener.hxx"
-#include "Directory.hxx"
+#include "LightDirectory.hxx"
#include "LightSong.hxx"
#include "PlaylistVector.hxx"
#include "ConfigGlobal.hxx"
@@ -58,9 +58,9 @@ public:
};
static bool
-DumpDirectory(const Directory &directory, Error &)
+DumpDirectory(const LightDirectory &directory, Error &)
{
- cout << "D " << directory.path << endl;
+ cout << "D " << directory.GetPath() << endl;
return true;
}
@@ -76,9 +76,10 @@ DumpSong(const LightSong &song, Error &)
static bool
DumpPlaylist(const PlaylistInfo &playlist,
- const Directory &directory, Error &)
+ const LightDirectory &directory, Error &)
{
- cout << "P " << directory.path << "/" << playlist.name.c_str() << endl;
+ cout << "P " << directory.GetPath()
+ << "/" << playlist.name.c_str() << endl;
return true;
}