Commit 6b66e86f authored by Max Kellermann's avatar Max Kellermann

db/simple: move Create() up

parent cb145d29
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment