summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease_mgr_factory.h
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2020-11-05 00:23:11 +0100
committerRazvan Becheriu <razvan@isc.org>2020-12-09 18:12:46 +0100
commit126579d1d4e534af57211ad08bf100a92351e72e (patch)
treea75e8c0716e56d92171b82295a57aefecb577be5 /src/lib/dhcpsrv/lease_mgr_factory.h
parent[#1375] fixed doxygen (diff)
downloadkea-126579d1d4e534af57211ad08bf100a92351e72e.tar.xz
kea-126579d1d4e534af57211ad08bf100a92351e72e.zip
[#1375] added IOService to mysql and postgresql connections
Diffstat (limited to 'src/lib/dhcpsrv/lease_mgr_factory.h')
-rw-r--r--src/lib/dhcpsrv/lease_mgr_factory.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/dhcpsrv/lease_mgr_factory.h b/src/lib/dhcpsrv/lease_mgr_factory.h
index 9938643868..792f3e5413 100644
--- a/src/lib/dhcpsrv/lease_mgr_factory.h
+++ b/src/lib/dhcpsrv/lease_mgr_factory.h
@@ -7,6 +7,7 @@
#ifndef LEASE_MGR_FACTORY_H
#define LEASE_MGR_FACTORY_H
+#include <asiolink/io_service.h>
#include <database/database_connection.h>
#include <dhcpsrv/lease_mgr.h>
#include <exceptions/exceptions.h>
@@ -62,12 +63,14 @@ public:
/// "keyword=value" pairs, separated by spaces. They are backend-
/// -end specific, although must include the "type" keyword which
/// gives the backend in use.
+ /// @param io_service The IOService object, used for all ASIO operations.
///
/// @throw isc::InvalidParameter dbaccess string does not contain the "type"
/// keyword.
/// @throw isc::dhcp::InvalidType The "type" keyword in dbaccess does not
/// identify a supported backend.
- static void create(const std::string& dbaccess);
+ static void create(const std::string& dbaccess,
+ const isc::asiolink::IOServicePtr& io_service = isc::asiolink::IOServicePtr());
/// @brief Destroy lease manager
///
@@ -97,10 +100,9 @@ private:
/// is encapsulated in this method to avoid a "static initialization
/// fiasco" if defined in an external static variable.
static boost::scoped_ptr<LeaseMgr>& getLeaseMgrPtr();
-
};
-}; // end of isc::dhcp namespace
-}; // end of isc namespace
+} // end of isc::dhcp namespace
+} // end of isc namespace
#endif // LEASE_MGR_FACTORY_H