db/Interface: add attribute "plugin"

The new method IsPlugin() replaces the "is_simple" flag.
This commit is contained in:
Max Kellermann
2014-02-19 23:17:21 +01:00
parent ae594ad92c
commit 85b8675e7a
12 changed files with 34 additions and 16 deletions

View File

@@ -23,6 +23,9 @@
#include <assert.h>
LazyDatabase::LazyDatabase(Database *_db)
:Database(_db->GetPlugin()), db(_db), open(false) {}
LazyDatabase::~LazyDatabase()
{
assert(!open);