db/simple: move Create() up
This commit is contained in:
parent
cb145d290e
commit
6b66e86f40
@ -53,6 +53,10 @@ class SimpleDatabase : public Database {
|
|||||||
SimpleDatabase();
|
SimpleDatabase();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
static Database *Create(EventLoop &loop, DatabaseListener &listener,
|
||||||
|
const config_param ¶m,
|
||||||
|
Error &error);
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
Directory *GetRoot() {
|
Directory *GetRoot() {
|
||||||
assert(root != NULL);
|
assert(root != NULL);
|
||||||
@ -69,10 +73,6 @@ public:
|
|||||||
return mtime > 0;
|
return mtime > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Database *Create(EventLoop &loop, DatabaseListener &listener,
|
|
||||||
const config_param ¶m,
|
|
||||||
Error &error);
|
|
||||||
|
|
||||||
virtual bool Open(Error &error) override;
|
virtual bool Open(Error &error) override;
|
||||||
virtual void Close() override;
|
virtual void Close() override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user