summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/host_data_source_factory.h
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2015-12-01 20:32:31 +0100
committerTomek Mrugalski <tomasz@isc.org>2015-12-01 20:32:31 +0100
commit3be59fccd1c8f2234ed550bd7911b992c5007977 (patch)
tree014180d211ac99c05d7b73845854d4229fcf9cba /src/lib/dhcpsrv/host_data_source_factory.h
parent[3569_rebase] Compilation fix after rebase. (diff)
downloadkea-3be59fccd1c8f2234ed550bd7911b992c5007977.tar.xz
kea-3be59fccd1c8f2234ed550bd7911b992c5007977.zip
[3569_rebase] MySQL host data source is now indeed created and stored.
Diffstat (limited to 'src/lib/dhcpsrv/host_data_source_factory.h')
-rw-r--r--src/lib/dhcpsrv/host_data_source_factory.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/dhcpsrv/host_data_source_factory.h b/src/lib/dhcpsrv/host_data_source_factory.h
index c0b38c643b..09fda5a597 100644
--- a/src/lib/dhcpsrv/host_data_source_factory.h
+++ b/src/lib/dhcpsrv/host_data_source_factory.h
@@ -88,23 +88,12 @@ public:
/// host data source is available.
static void destroy();
- /// @brief Return current host data source
- ///
- /// @returns An instance of the "current" host data source. An exception
- /// will be thrown if none is available.
- ///
- /// @throw NoHostDataSourceManager No host data source is available: use
- /// create() to create one before calling this method.
- static BaseHostDataSource& instance();
-
-private:
/// @brief Hold pointer to host data source instance
///
/// Holds a pointer to the singleton host data source. The singleton
/// is encapsulated in this method to avoid a "static initialization
/// fiasco" if defined in an external static variable.
- static boost::scoped_ptr<BaseHostDataSource>& getHostDataSourcePtr();
-
+ static HostDataSourcePtr& getHostDataSourcePtr();
};