diff options
author | Max Kellermann <max@duempel.org> | 2014-02-04 08:37:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 09:05:32 +0100 |
commit | d76b6f878e06d052ab54415783c39997939349e0 (patch) | |
tree | 954eb15c6a1f8eaa033285df551f355f6973d758 /src/db/plugins | |
parent | f25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d (diff) | |
download | mpd-d76b6f878e06d052ab54415783c39997939349e0.tar.gz mpd-d76b6f878e06d052ab54415783c39997939349e0.tar.xz mpd-d76b6f878e06d052ab54415783c39997939349e0.zip |
db/update/Service: add SimpleDatabase reference
Don't use the global variables from the DatabaseSimple library.
Diffstat (limited to '')
-rw-r--r-- | src/db/plugins/SimpleDatabasePlugin.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/plugins/SimpleDatabasePlugin.hxx b/src/db/plugins/SimpleDatabasePlugin.hxx index 137a60884..8c7978a91 100644 --- a/src/db/plugins/SimpleDatabasePlugin.hxx +++ b/src/db/plugins/SimpleDatabasePlugin.hxx @@ -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 ¶m, Error &error); |