summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease_mgr_factory.h
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2015-04-17 21:21:26 +0200
committerTomek Mrugalski <tomasz@isc.org>2015-06-25 20:55:12 +0200
commit373aa0a40ebf570911c0d09cee47e8271bff0d48 (patch)
tree6a62422419135c116c66cb2cd6706956a1b42e69 /src/lib/dhcpsrv/lease_mgr_factory.h
parent[3681] MySQLConnection class implemented (diff)
downloadkea-373aa0a40ebf570911c0d09cee47e8271bff0d48.tar.xz
kea-373aa0a40ebf570911c0d09cee47e8271bff0d48.zip
[3681] DataSource class added.
- code refactoring after last commit, clean-up, compilation fixes - Makefile updates - Added new unit-tests for DataSource (mostly moved from LeaseMgr unit-tests)
Diffstat (limited to 'src/lib/dhcpsrv/lease_mgr_factory.h')
-rw-r--r--src/lib/dhcpsrv/lease_mgr_factory.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/lease_mgr_factory.h b/src/lib/dhcpsrv/lease_mgr_factory.h
index c5e9a6764d..9ff2fdc75e 100644
--- a/src/lib/dhcpsrv/lease_mgr_factory.h
+++ b/src/lib/dhcpsrv/lease_mgr_factory.h
@@ -16,6 +16,7 @@
#define LEASE_MGR_FACTORY_H
#include <dhcpsrv/lease_mgr.h>
+#include <dhcpsrv/data_source.h>
#include <exceptions/exceptions.h>
#include <string>
@@ -106,7 +107,7 @@ public:
/// @param dbaccess Database access string.
///
/// @return std::map<std::string, std::string> Map of keyword/value pairs.
- static LeaseMgr::ParameterMap parse(const std::string& dbaccess);
+ static DataSource::ParameterMap parse(const std::string& dbaccess);
/// @brief Redact database access string
///
@@ -117,7 +118,7 @@ public:
///
/// @return Redacted database access string.
static std::string redactedAccessString(
- const LeaseMgr::ParameterMap& parameters);
+ const DataSource::ParameterMap& parameters);
private:
/// @brief Hold pointer to lease manager