From cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Feb 2014 00:26:34 +0100 Subject: Instance: add Database attribute Move from db/DatabaseGlue.cxx, eliminating global variable. --- src/client/Client.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/client/Client.cxx') diff --git a/src/client/Client.cxx b/src/client/Client.cxx index ce99faa89..c62c759e9 100644 --- a/src/client/Client.cxx +++ b/src/client/Client.cxx @@ -20,5 +20,17 @@ #include "config.h" #include "ClientInternal.hxx" #include "util/Domain.hxx" +#include "Partition.hxx" +#include "Instance.hxx" const Domain client_domain("client"); + +#ifdef ENABLE_DATABASE + +const Database * +Client::GetDatabase(Error &error) const +{ + return partition.instance.GetDatabase(error); +} + +#endif -- cgit v1.2.3