db/update/Service: add SimpleDatabase reference

Don't use the global variables from the DatabaseSimple library.
This commit is contained in:
Max Kellermann
2014-02-04 08:37:05 +01:00
parent f25ef8d682
commit d76b6f878e
6 changed files with 24 additions and 41 deletions
+4
View File
@@ -59,6 +59,10 @@ public:
bool Save(Error &error);
bool FileExists() const {
return mtime > 0;
}
static Database *Create(EventLoop &loop, DatabaseListener &listener,
const config_param &param,
Error &error);