diff options
author | Francis Dupont <fdupont@isc.org> | 2018-02-11 22:46:07 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2018-02-11 22:46:07 +0100 |
commit | 405ae2f6a85bbc2c2123fb3075bd5259adea523c (patch) | |
tree | 23b226d2d0c5e25b22ad23b875b83f6cc76a7ea1 /src/lib/dhcpsrv/base_host_data_source.h | |
parent | [5528] Updated doc, final improvements to tests (diff) | |
download | kea-405ae2f6a85bbc2c2123fb3075bd5259adea523c.tar.xz kea-405ae2f6a85bbc2c2123fb3075bd5259adea523c.zip |
[5531] Checkpoint: 3/4 code done
Diffstat (limited to 'src/lib/dhcpsrv/base_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/base_host_data_source.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/base_host_data_source.h b/src/lib/dhcpsrv/base_host_data_source.h index 2e3ed16db1..e68f5d1729 100644 --- a/src/lib/dhcpsrv/base_host_data_source.h +++ b/src/lib/dhcpsrv/base_host_data_source.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -14,6 +14,8 @@ #include <exceptions/exceptions.h> #include <boost/shared_ptr.hpp> +#include <vector> + namespace isc { namespace dhcp { @@ -245,7 +247,8 @@ public: /// is identified by HW address, another one by DUID. /// /// @param host Pointer to the new @c Host object being added. - virtual void add(const HostPtr& host) = 0; + /// @return true if addition was successful. + virtual bool add(const HostPtr& host) = 0; /// @brief Attempts to delete a host by (subnet-id, address) /// @@ -310,6 +313,9 @@ public: /// @brief HostDataSource pointer typedef boost::shared_ptr<BaseHostDataSource> HostDataSourcePtr; +/// @brief HostDataSource list +typedef std::vector<HostDataSourcePtr> HostDataSourceList; + } } |