aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Walk.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 17:03:43 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 18:53:51 +0100
commit0ba1b73395dc7beaa27ed9bb07636970243b76e6 (patch)
treece55bfc2eff1cf7fbcd8d2cc02e85bf2e6b53c46 /src/db/update/Walk.cxx
parent4c995eb49873eac081486a94c6ed8db566248563 (diff)
downloadmpd-0ba1b73395dc7beaa27ed9bb07636970243b76e6.tar.gz
mpd-0ba1b73395dc7beaa27ed9bb07636970243b76e6.tar.xz
mpd-0ba1b73395dc7beaa27ed9bb07636970243b76e6.zip
storage: add abstract interface
Prepare for the plugin interface.
Diffstat (limited to 'src/db/update/Walk.cxx')
-rw-r--r--src/db/update/Walk.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index d8b998f9e..5750f0223 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -27,7 +27,7 @@
#include "db/Song.hxx"
#include "db/PlaylistVector.hxx"
#include "db/Uri.hxx"
-#include "storage/LocalStorage.hxx"
+#include "storage/StorageInterface.hxx"
#include "playlist/PlaylistRegistry.hxx"
#include "Mapper.hxx"
#include "ExcludeList.hxx"
@@ -49,7 +49,7 @@
#include <errno.h>
UpdateWalk::UpdateWalk(EventLoop &_loop, DatabaseListener &_listener,
- LocalStorage &_storage)
+ Storage &_storage)
:storage(_storage),
editor(_loop, _listener)
{
@@ -140,7 +140,7 @@ UpdateWalk::PurgeDeletedFromDirectory(Directory &directory)
#ifndef WIN32
static bool
-update_directory_stat(LocalStorage &storage, Directory &directory)
+update_directory_stat(Storage &storage, Directory &directory)
{
FileInfo info;
if (!GetInfo(storage, directory.GetPath(), info))
@@ -152,7 +152,7 @@ update_directory_stat(LocalStorage &storage, Directory &directory)
#endif
static int
-find_inode_ancestor(LocalStorage &storage, Directory *parent,
+find_inode_ancestor(Storage &storage, Directory *parent,
unsigned inode, unsigned device)
{
#ifndef WIN32
@@ -320,7 +320,7 @@ UpdateWalk::UpdateDirectory(Directory &directory, const FileInfo &info)
directory_set_stat(directory, info);
Error error;
- LocalDirectoryReader *const reader =
+ StorageDirectoryReader *const reader =
storage.OpenDirectory(directory.GetPath(), error);
if (reader == nullptr) {
LogError(error);