diff options
author | Max Kellermann <max@duempel.org> | 2014-02-04 08:57:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 09:05:32 +0100 |
commit | f25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d (patch) | |
tree | f0ad647783c635c72bd7004b34dbae01ad2d3970 /src/db/update/Walk.hxx | |
parent | 33a2c01ea2e6c06922eb0ce6a8f08760206138b4 (diff) | |
download | mpd-f25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d.tar.gz mpd-f25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d.tar.xz mpd-f25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d.zip |
db/update/Walk: add Directory reference parameter
Remove dependency on the DatabaseSimple library.
Diffstat (limited to '')
-rw-r--r-- | src/db/update/Walk.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/db/update/Walk.hxx b/src/db/update/Walk.hxx index 12274ccdf..ecb04387d 100644 --- a/src/db/update/Walk.hxx +++ b/src/db/update/Walk.hxx @@ -54,7 +54,7 @@ public: /** * Returns true if the database was modified. */ - bool Walk(const char *path, bool discard); + bool Walk(Directory &root, const char *path, bool discard); private: gcc_pure @@ -126,9 +126,10 @@ private: Directory *DirectoryMakeChildChecked(Directory &parent, const char *name_utf8); - Directory *DirectoryMakeUriParentChecked(const char *uri); + Directory *DirectoryMakeUriParentChecked(Directory &root, + const char *uri); - void UpdateUri(const char *uri); + void UpdateUri(Directory &root, const char *uri); }; #endif |