mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 06:55:16 +00:00
[#2815] Add host manager enum flags
This commit is contained in:
@@ -16,10 +16,22 @@
|
|||||||
#include <boost/noncopyable.hpp>
|
#include <boost/noncopyable.hpp>
|
||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace isc {
|
namespace isc {
|
||||||
namespace dhcp {
|
namespace dhcp {
|
||||||
|
|
||||||
|
// Enum flags to define a target of the host manager functions.
|
||||||
|
enum class HostMgrOperationTarget : uint8_t {
|
||||||
|
NONE = 0, // 1 << 0
|
||||||
|
// Consider only the CfgHosts instance.
|
||||||
|
CONFIG_HOSTS = 1, // 1 << 1
|
||||||
|
// Consider only the alternate sources.
|
||||||
|
ALTERNATE_SOURCES = 2, // 1 << 2
|
||||||
|
// Consider both CfgInstance and alternate sources.
|
||||||
|
ALL = 3 // CONFIG_HOSTS & ALTERNATE_SOURCES
|
||||||
|
};
|
||||||
|
|
||||||
/// @brief Host Manager.
|
/// @brief Host Manager.
|
||||||
///
|
///
|
||||||
/// This is a singleton class which provides access to multiple sources of
|
/// This is a singleton class which provides access to multiple sources of
|
||||||
|
Reference in New Issue
Block a user