2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2815] Add host manager enum flags

This commit is contained in:
Slawek Figiel
2023-03-31 18:04:11 +02:00
parent dd11411c35
commit d5be6daac8

View File

@@ -16,10 +16,22 @@
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <string>
#include <cstdint>
namespace isc {
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.
///
/// This is a singleton class which provides access to multiple sources of