db/update/Walk: add Directory reference parameter

Remove dependency on the DatabaseSimple library.
This commit is contained in:
Max Kellermann
2014-02-04 08:57:40 +01:00
parent 33a2c01ea2
commit f25ef8d682
3 changed files with 14 additions and 14 deletions

View File

@@ -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