aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-25 18:17:39 +0100
committerMax Kellermann <max@duempel.org>2014-02-25 18:17:39 +0100
commit6b66e86f400f15d027e7141b86100d016e7e9e3d (patch)
tree5c9eaf8c1f9ba0fd07e39a5f9caefe94002dc93a /src
parentcb145d290ef04ed39c67f1ddf29e7b757ffd0bf5 (diff)
downloadmpd-6b66e86f400f15d027e7141b86100d016e7e9e3d.tar.gz
mpd-6b66e86f400f15d027e7141b86100d016e7e9e3d.tar.xz
mpd-6b66e86f400f15d027e7141b86100d016e7e9e3d.zip
db/simple: move Create() up
Diffstat (limited to 'src')
-rw-r--r--src/db/plugins/SimpleDatabasePlugin.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/plugins/SimpleDatabasePlugin.hxx b/src/db/plugins/SimpleDatabasePlugin.hxx
index 83a8dc491..a92003ac1 100644
--- a/src/db/plugins/SimpleDatabasePlugin.hxx
+++ b/src/db/plugins/SimpleDatabasePlugin.hxx
@@ -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;