From d76b6f878e06d052ab54415783c39997939349e0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 08:37:05 +0100 Subject: db/update/Service: add SimpleDatabase reference Don't use the global variables from the DatabaseSimple library. --- src/db/plugins/SimpleDatabasePlugin.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/db/plugins/SimpleDatabasePlugin.hxx') 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); -- cgit v1.2.3