db/simple: move Create() up

This commit is contained in:
Max Kellermann 2014-02-25 18:17:39 +01:00
parent cb145d290e
commit 6b66e86f40

View File

@ -53,6 +53,10 @@ class SimpleDatabase : public Database {
SimpleDatabase();
public:
static Database *Create(EventLoop &loop, DatabaseListener &listener,
const config_param &param,
Error &error);
gcc_pure
Directory *GetRoot() {
assert(root != NULL);
@ -69,10 +73,6 @@ public:
return mtime > 0;
}
static Database *Create(EventLoop &loop, DatabaseListener &listener,
const config_param &param,
Error &error);
virtual bool Open(Error &error) override;
virtual void Close() override;