storage: add abstract interface

Prepare for the plugin interface.
This commit is contained in:
Max Kellermann
2014-02-05 17:03:43 +01:00
parent 4c995eb498
commit 0ba1b73395
11 changed files with 146 additions and 60 deletions

View File

@@ -29,7 +29,7 @@ struct stat;
struct FileInfo;
struct Directory;
struct archive_plugin;
class LocalStorage;
class Storage;
class ExcludeList;
class UpdateWalk final {
@@ -48,13 +48,13 @@ class UpdateWalk final {
bool walk_discard;
bool modified;
LocalStorage &storage;
Storage &storage;
DatabaseEditor editor;
public:
UpdateWalk(EventLoop &_loop, DatabaseListener &_listener,
LocalStorage &_storage);
Storage &_storage);
/**
* Returns true if the database was modified.